[android-developers] Log in with Facebook, gmail, twitter....
I'm developing an android app which makes connection with facebook, twittter, google, etc... and know what I'm doing is logging againsy providers with my oauth's ids and so on. Now, I'm just getting auth id (but I think this is not the one I want, because I don't have to accept facebook or twitter permissions) with this code lines, but as I've told you, I think, that is not what I'm looking for: AccountManager accountManager = AccountManager .get(getApplicationContext()); accountManager.getAuthToken(account, "mail", false, new AuthTokenCallback(), null); I just want to use the log data from their android apps. So, the behavour must be... 1) Run my app 2) Press Login button with the provider selected (for ex. Facebook) 3) Now, facebook app (if present on android phone) opens and asks you for permissions for your registered app and gives to the app the oauth token. I've seen this in several apps on Android, but I don't have any example in my mind... sorry =( Thanks for all your responses -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Single sign on or similar for Google Account?
Hi, I've seen that Single Sign On with Facebook (SSO) is easy and that Twitter's can be achieved with this: http://thetechnib.blogspot.com.es/2011/01/android-sign-in-with-twitter.html But how about google/gmail accounts? I want to have a button which says "log with google account" or something like that, and uses the data stored in phone? If there are multiple addresses, I want to choose which one to use to, although it's not necessary. So, I have a registered an app, and I have to get the OAuth data (as I would do with Facebook SSO) but for gmail accounts. I have tried to do it with: AccountManager accountManager = AccountManager .get(getApplicationContext()); accountManager.getAuthToken(account, "mail", false, new AuthTokenCallback(), null); But this doesn't give me the oauth tokens related to my registered app =( Can you please help me? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Single sign on
Hi, I've seen that Single Sign On with Facebook (SSO) is easy and that Twitter's can be achieved with this: http://thetechnib.blogspot.com.es/2011/01/android-sign-in-with-twitter.html But how about google/gmail accounts? I want to have a button which says "log with google account" or something like that, and uses the data stored in phone? If there are multiple addresses, I want to choose which one to use to, although it's not necessary. So, I have a registered an app, and I have to get the OAuth data (as I would do with Facebook SSO) but for gmail accounts. I have tried to do it with: AccountManager accountManager = AccountManager .get(getApplicationContext()); accountManager.getAuthToken(account, "mail", false, new AuthTokenCallback(), null); But this doesn't give me the oauth tokens related to my registered app =( Can you please help me? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en