Android : Get User information who logins to device

on Monday, September 15, 2014


I need to get all information as possible about the user who uses the tablet. Please notice that the user is created by the following steps:


settings-> Users -> add user and skip all other windows. So I create a user without connecting it with Google account.


Now I want to find that user name by code.


I tried this:



Account[] accounts = AccountManager.get(context).getAccounts();


But it returns only those accounts who entered its gmail account. How can I find the user who does not create user acount?


0 comments:

Post a Comment