We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

SparkyNZ's avatar
SparkyNZ
Helpful | Level 5
8 years ago
Solved

How to stop folder access prompt appearing every time?

Is it possible to configure or code my Android app so that the below prompt doesn't appear every single time I restart my app?

 

enter image description here

 

I only have the one API call below and yet I see the above prompt every single time I start my app.

 

Auth.startOAuth2Authentication( gContext, APP_KEY );

 

Surely there must be a way to code or configure an app so that this doesn't appear every single time?

  • I've solved this problem myself. I don't need to call the below line every startup:

    Auth.startOAuth2Authentication( gContext, APP_KEY );

    Once I get an access token, I can store that for subsequent program restarts and create a DbxClientV2 by using that saved token.

    DbxRequestConfig config = new DbxRequestConfig( "dropbox/sample-app" );
    DbxClientV2 client = new DbxClientV2( config, savedToken );

    No more auth screen, yay!

1 Reply

  • SparkyNZ's avatar
    SparkyNZ
    Helpful | Level 5
    8 years ago
    I've solved this problem myself. I don't need to call the below line every startup:

    Auth.startOAuth2Authentication( gContext, APP_KEY );

    Once I get an access token, I can store that for subsequent program restarts and create a DbxClientV2 by using that saved token.

    DbxRequestConfig config = new DbxRequestConfig( "dropbox/sample-app" );
    DbxClientV2 client = new DbxClientV2( config, savedToken );

    No more auth screen, yay!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 7 hours ago
411 Following

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 or Facebook.

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!