Getting auth token for dropbox account from accountmanager in android
        Posted  
        
            by 
                user1490880
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user1490880
        
        
        
        Published on 2012-10-16T13:57:26Z
        Indexed on 
            2012/10/18
            11:01 UTC
        
        
        Read the original article
        Hit count: 348
        
I am trying to get auth token for a dropbox account configured in device from account manager. I am using
accountManager.getAuthToken(account, "DROPBOX",null,Hello.this, new GetAuthTokenCallback(), null);//account" is dropbox account
I am seeing a Allow/Deny page. I click on Allow, but the callback is not getting invoked at all and i dont get the auth token. I got the authtoken for a google account with this(with a different authtokentype). What i am missing. I am not sure about the authTokenType parameter for dropbox. Also are there any other parameter specific for dropbox like the bundle parameter that i am missing. Is this way possible for dropbox?
Check below for the function parameters
public AccountManagerFuture<Bundle> getAuthToken (Account account, String authTokenType, Bundle options, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler)
Link: http://developer.android.com/reference/android/accounts/AccountManager.html
UPDATE
- I assume since we are able to create a dropbox account in android Accounts and Sync(Settings), there must be a dropbox authenticator that has all the functions in AbstractAccountAuthenticator implemented including getAuthToken(). So dropbox should support giving auth token i think. 
- Also dropbox uses oauth1, whereas account manager uses outh 2.0. So is this an issue.Can anyone comment on this? 
© Stack Overflow or respective owner