dimanche 30 août 2015

Detecting User Switch in Android

I have a requirement of detecting user switch in an Android application. Basically whenever there is a switch from Owner to Restricted Profile User or vice versa, I am planning to store the previous user in SQLite database and query and verify if there is a switch. I have already tried How to detect switching between users but it did not help me as my requirement is a bit different (Requirement of Application Kill on Profile Switch). Is there any Android API to query and get the current user ?

Aucun commentaire:

Enregistrer un commentaire