views:

73

answers:

1

Well hello guys.

I am in progress of creating an android app that requires you to register and login.

Now I was thinking, why register and login? Isn't it possible to automaticly login with the google account that is already on your device? Just like how you can use your google account to login to stack overflow?

So my question is: is this possible, and how?

Thanks!

+1  A: 

I guess you could use Google's OAuth service to check if the supplied account / password combo is valid. Save the token and require them to login again if they logout, to verify the account / password again.

You could even have access to some of their Google Apps data from this point, if you wanted.

Jason Knight