So, I'm creating an android app, and along with my standard registration method, I'd like to allow users to register using their Google account. I've seen a lot of information on "Log in with Google+" as well as OAuth implementations. However, I still haven't seen anything that really touches on just authenticating a user and allowing them to register for an application using their Google account, and then later log in using the same account, referencing my local copy of the user account record in my database. Essentially, what I want to do is:
I hope I've explained what I'm trying to accomplish, but if it still sounds a bit vague let me know and I'll try to explain more. Any help is greatly appreciated. I obviously don't expect anyone to code this for me, just to point me in the right direction, or just tell me that what I'm trying to do is a horrible idea. Either way, thanks in advance!
You should start by reading some tutorials on how to achieve the registration.
https://developers.google.com/+/mobile/android/sign-in
and
https://developer.android.com/google/play-services/index.html
Maybe for the handling of the database you should use a content provider:
http://thinkandroid.wordpress.com/2010/01/13/writing-your-own-contentprovider/
or
http://www.vogella.com/tutorials/AndroidSQLite/article.html
the rest is just coding and some hard work. Hope i addressed you problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With