Is there any chance to get switched(active) account ID in android(L) multi user. Secure.getString(getContentResolver(),Secure.ANDROID_ID) this one returning first owner android ID
Solution 1:
AccountManager
This class provides access to all registered user accounts in device.
AccountManager generates the auth tokens for different applications
and caches it. It is also responsible for periodic check for the
validity of auth tokens.
Please go through below Link. Hope this helps you .
Get all registered email accounts in Android
Post a Comment for "How To Get Active Account Id In Android Multi User"