Hey. I am developing an application using the twitter4j api. To enable the application and get the access token, I launch the browser with the callback parameters that I set in the manifest file.
<data android:scheme="scheme" android:host="authenticatorapp"></data>
After resolving the application, the browser calls the following and does not work with the message not found. Schematic: // authenticatorapp oauth_token = n5vd99dfnmnf ...
I tried this on both the emulator and the device. In emulator, LogCat gives me the following:
12-12 15: 04: 05.743: ERROR / browser (230): scheme onReceivedError -10: // authenticatorapp? oauth_token = Jj ... M & oauth_verifier = 3ZfuY ... Protocol is not supported.
- manifest file:
<activity android:name=".AuthenticatorApp"
android:launchMode="singleInstance"
>
<intent-filter>
<category android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.LAUNCHER" />
<data android:scheme="scheme" android:host="authenticatorapp"></data>
</intent-filter>
</activity>
<receiver android:name=".ZaytungWidget" android:label="@string/widget_name">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data android:name="android.appwidget.provider"
android:resource="@xml/tweet_metadata" />
</receiver>
<service android:name=".ZaytungWidget$UpdateService" />
</application>
<uses-sdk android:minSdkVersion="4" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.INTERNET" />