In Jelly beans now you can add multiple user profile, i want this feature in my app but want to create/add multiple profile programmatically.
Is it possible?
Help me to get out of this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, this is possible, provided the device is rooted, and running only 4.1. Even then, it is an unofficial method that relies on executing terminal commands in a root shell.
I wrote the User Management app when this feature was originally discovered, and then later open sourced it in the interests of helping others. You can find the code on GitHub here.
Other than executing commands in a root shell, there is no method of achieving this AFAIK. The Android SDK does not provide any APIs for creating additional users.