Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Harish P.'s avatar
Harish P.
New member | Level 1
11 years ago

Dropbox sync API startLink() not working on HTC One (which has system installed Dropbox app on the device)

I have integrated Dropbox into my app and it works on all Android devices except HTC ONE. The only difference I can see is that HTC ONE device has a pre-installed system app Dropboxc which cant be uninstalled. And the error that I get is "The app was not correctly configured and cannot access your Dropbox."

mDbxAcctMgr.startLink(activity, Constants.REQUEST_LINK_TO_DBX);

Any ideas how I can resolve this problem on HTC ONE?

8 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    [Cross-linking for reference: https://stackoverflow.com/questions/30212974/dropbox-sync-api-startlink-not-working-on-htc-one-which-has-system-installed ]

    Does this only happen on HTC One devices with the Dropbox app installed, or does it happen on any Android device with the Dropbox app installed? (If you haven't tried the latter, please do.)

    Have you set up the db-{YOUR_APP_KEY} intent filter, per the instructions?

    Can you post the relevant code you're using to set up the account manager and call startLink, per the tutorial?

  • Harish P.'s avatar
    Harish P.
    New member | Level 1
    11 years ago

    Thank you Greg for the response but as mentioned in my post it works fine on all other Android devices (With and without Dropbox app) and is failing only on HTC ONE.

    private DbxAccountManager mDbxAcctMgr;
        mDbxAcctMgr = DbxAccountManager.getInstance(
                mContext, Constants.DROPBOX_APP_KEY,
                Constants.DROPBOX_APP_SECRET);
        if (mDbxAcctMgr != null) {
            mDbxAcctMgr.startLink(activity,
                    Constants.REQUEST_LINK_TO_DBX);
        }
    
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    Thanks! Have you set up the db-{YOUR_APP_KEY} intent filter, per the instructions? Can you post that too?

  • Harish P.'s avatar
    Harish P.
    New member | Level 1
    11 years ago

    Yes and on all other devices I'm able to authorize and upload files to Dropbox.

        <activity android:name="com.dropbox.sync.android.DbxAuthActivity" />
        <activity
          android:name="com.dropbox.client2.android.AuthActivity"
          android:launchMode="singleTask" >
          <intent-filter>
            <data android:scheme="db-i12524brdnlzkb1" />
            <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" />  
    
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    Thanks! That's helpful. We'll look into it.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    Also, can you let me know the version number for the Dropbox app installed on the HTC Once device(s) you've seen this on?

  • Harish P.'s avatar
    Harish P.
    New member | Level 1
    11 years ago

    Dropbox app version 2.3.5.10
    Dropbox for HTC Sense version 6.0.766933

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    Version 2.3.5.10 of the Dropbox app is a bit old now. Can you update to the latest version (currently 2.5.0.4 on Google Play) and let me know if you still see the issue?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!