I am trying to run my Android 4+ on a Kindle Fire. Everything works fine but the connection to Dropbox. The app uses the latest Dropbox SDK and on normal/Non-Kindle Android devices everything works as expected:
When dropboxAPI.getSession().startOAuth2Authentication(activity)
is called within the app the browser comes up and shows the Dropbox webpage with a user login. Once the user is logged in he can decide to allow or decline the apps access the Dropbox account. After doing this the user is re-directed back to app by calling a custom URL scheme that is defined in the app manifest:
<activity
android:name="com.dropbox.client2.android.AuthActivity"
android:configChanges="orientation|keyboard"
android:launchMode="singleTask" >
<intent-filter>
<!-- Change this to be db- followed by your app key -->
<data android:scheme="db-xyzMyAppKeyXYZ" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
This workes fine on all Non-Kindle devices. On Kindle the user is not re-directed back to the app but the following error message is shown within the browser:
Webpage not available: The wepage at
db-xyzMyAppKeyXYZ://1/connect?outh_token_secrete...
faild to load. Unknown error.
Obviously there seems to be some problem kind of problem with the scheme. But would kind of problem could that be and how can it be solved?