Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use google account in your own android app?

i have an android app which uses data stored in an google appengines datastore. Every user has his own data. Im searching for a good way to use a google account for authentication and as a primary key in the database.

Can i use the AuthToken generated by the AccountManager? What is the best way to do this?

Thx a lot, Ray

like image 344
Ray Avatar asked Oct 23 '11 09:10

Ray


People also ask

How do I connect my Google account to a different app?

Once the other Google account is added, open the “Google Play” app. button located at the upper-left corner of he screen. Select the small arrow next to your google account, then choose the other account listed. > “My apps” to download and install the apps that are purchased under the other account.

How do I add a work account to my Android?

1.1 Set up your work account On your Android device, go to your account settings. Add your Google Workspace account and follow the instructions. After you finish, you see a message that says your account sign-in was successful. Choose which products you want to synchronize to your device.

How do I add another Google account to my Android phone?

This wikiHow teaches you how to add another Google account to an Android phone or tablet. Open your Android’s Settings . You’ll usually find this app in the app drawer, but you may also be able to find it in your Android’s notification panel. Scroll down and tap Accounts. Tap Add Account. It’s at the bottom of the menu. Tap Google.

How do I create a Google Play account on Android?

1 Open a Google Play app. 2 At the top right, tap your profile picture or initial. 3 Tap the Down arrow . 4 Select an account. See More...

How do I sign in to my Google account on Android?

On your Android phone or tablet, open your device's Settings app Google Manage your Google Account. At the top, tap Security. Under "Signing in to other sites," tap Signing in with Google.

How to use multiple Google accounts on a mobile device?

It’s just as easy to work with multiple Google accounts on a mobile device. Let’s use the Hangouts mobile app as an example. Click the triangle to the right of the currently logged-in account. Click “ Manage Account ”. You can see all the accounts you can use, and click “ Add another account ” to log in with a different one.


1 Answers

You can follow Nick Johnson's approach: http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app.

And yes you can use AuthToken from AccountManager.

like image 64
Carlos Ricardo Avatar answered Oct 02 '22 01:10

Carlos Ricardo