Skip to content Skip to sidebar Skip to footer

Com.dropbox.client2.exception.DropboxUnlinkedException

I want to send text file to dropbox but it is showing DropboxUnlinkedException. Solution :: First, let your program get fully authenticated. Just after mDBApi.getSession.startAuth

Solution 1:

You're calling startAuthentication but then immediately trying to call API methods (before authentication has actually happened). You can only use the API once the user has authenticated. In your code, here's the part that runs after the user has authenticated and returns to your app:

protected void onResume() {
    ...
    if (session.authenticationSuccessful()) {
        ...

Solution 2:

This error might also come when you miss calling this in onResume() of your activity :

                mDBApi.getSession().finishAuthentication();

Post a Comment for "Com.dropbox.client2.exception.DropboxUnlinkedException"