Google Drive api android how to login and logout from my drive account with hard code without user interaction? -


in drive app registration activity when user put his/her email-id , hit register want login google drive account give email id,password login , share files user's given email-id , logout . , start home activity.

i know drive account picker not getting how login , logout hardcode. , login how give password because user unaware of these things cannot use account picker. after logging out account details should not there in user's mobile account manager, gmail or anywhere else. 1 suggest how can achive or alternative way it.

  in simple words      1> how login drive account using given email , password hard code.     2> after sharing files logout account hard code. 

i doubt can done on android. need create web app sharing.

so ..

  1. your android app call rest api on web app, passing email address
  2. your web app retrieve stored refresh token account
  3. it use refresh token request access token
  4. it use access token share files email address

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -