Get User Token and Secret with Google API in Android -


first of i'm noob android developer. came ios background , see android development driving me little crazy, apologies if i'm ask dumb question.

i succesfully implemented "sign in google+" login in app , need information logged user. here can see data retrieved him.

@override public void onconnected(bundle bundle) {     log.d(tag, "connected google");      string accountname = plus.accountapi.getaccountname(mgoogleapiclient);      log.d(tag, "user email: " + accountname);       if (plus.peopleapi.getcurrentperson(mgoogleapiclient) != null){         person user = plus.peopleapi.getcurrentperson(mgoogleapiclient);         log.d(tag, "user name: "+ user.getname().getgivenname());         log.d(tag, "user image: " + user.getimage().geturl());         log.d(tag, "user id: " + user.getid());     } } 

but need 2 more things: user's access token , user's access secret.

i did similar on ios app i'm lost trying android. can help?

thanks

follow this , this.here described how can access token of google plus signed in user using background thread.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -