For example, apps like Facebook, Whatsapp have a separate account on the device. I want to have a similar behaviour.
Asked
Active
Viewed 1,995 times
2
Shubham
- 115
- 1
- 6
-
See the Android doc => https://stuff.mit.edu/afs/sipb/project/android/docs/training/id-auth/custom_auth.html – Kevin Robatel Oct 07 '15 at 17:19
-
Please take a look at this stack post: [http://stackoverflow.com/questions/24227274/how-to-add-programmatically-a-custom-account-in-android/39686087#39686087](http://stackoverflow.com/questions/24227274/how-to-add-programmatically-a-custom-account-in-android/39686087#39686087). – Ali Nem Sep 25 '16 at 11:48
1 Answers
2
You are looking for the AccountManager http://developer.android.com/reference/android/accounts/AccountManager.html
Community
- 1
- 1
Andre Classen
- 3,588
- 3
- 24
- 34