3

For example, apps like Facebook, Whatsapp have a separate account on the device. I want to have a similar behaviour. enter image description here

Shubham
  • 125
  • 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 Answers1

3

You are looking for the AccountManager http://developer.android.com/reference/android/accounts/AccountManager.html

How to add programmatically a custom account in android?

Community
  • 1
  • 1
Andre Classen
  • 3,868
  • 3
  • 26
  • 36