android - OneDrive - How to retrieve authorization access data? -


I develop an Android application that uses the OneDrive API. When I connect to OneDrive, I ask to authorize and show the authorization page (with permission to access my data on the cloud).

My problem is this: Every time I upload data to the cloud, the application shows me the authorization page, I should not see this page every time, how can we see that it is already recorded ?

Thanks a lot!

When using LiveSDK for Andriod, use the application to maintain this flow The time user is authenticated at all times, we ask LiveAuthClient.initialize (...) to upgrade user credentials (without any user input) or LiveAuthClient.login (...) with an interactive login ( To call the user name / password).

In the LiveSDK sample application, we call it Startup Activity SignInActivity.java Here are the relevant excerpts of renewing muted credentials:

  protected void onStart () {super. Onstart (); MAuthClient.initialize (Arrays.asList (Config.SCOPES), New LiveAuthListener () {@Override public void onAuthError (LiveAuthException exception, object userstate) {mInitializeDialog.dismiss; showSignIn (); showToast (exception.getMessage ()); } @ Override public empty onoth complex (livestats position, live connot session, object userstate) {mInitializeDialog.dismiss ()} if (status == LiveStatus.CONNECTED) {launchMainActivity (session);} else {showSignIn ();}}} ); }  

The LaunchmyEctivity () function takes the user into the primary application code, this will be where your application will start in earnest. To see the full details of this sign in activity look at the sample app


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -