Android App Dropbox API On authentication, always returns IllegalStateException -


trying integrate dropbox app. have followed rules see them, incluiding crazy story of adding 'db-' app key.

i obtained app key , secret key dropbox app store. app key installed in manifest , both keys in dbx call:

mdbxacctmgr = dbxaccountmanager.getinstance(getapplicationcontext(),      valid_app_key, valid_app_secret); 

strangely, error message is: (note 'db-db-')

java.lang.illegalstateexception: uri scheme in app's manifest not set correctly. should have com.dropbox.client2.android.authactivity scheme: db-db-es3ir5vajvxdcj5

when remove 'db-' portion app key the exception gives:

java.lang.illegalstateexception: uri scheme in app's manifest not set correctly. should have com.dropbox.client2.android.authactivity scheme: db-es3ir5vajvxdcj5.

the latter makes sense.

i've tried umpteen key pairs various name app store, hard-coded strings etc

for record, here's section manifest:

<activity     android:name="com.dropbox.client2.android.authactivity"     android:launchmode="singletask" >     <intent-filter>         <data android:scheme="db-es3ir5vajvxdcj5" />         <action android:name="android.intent.action.view" />         <category android:name="android.intent.category.browsable" />         <category android:name="android.intent.category.default" />     </intent-filter> </activity> <service    android:name="com.dropbox.sync.android.dbxsyncservice"    android:enabled="true"    android:exported="false"    android:label="dropbox sync" /> 

any ideas? been long day.

richie

in manifest, should have "db-". in other words, if app key "abc123", should use "db-abc123".

in code (i.e. when you're constructing client object), should use app key. in other words, "abc123".


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -