android - Is the Current active user profile the Owner? -


starting lollipop, android introduced multiple user profiles.where user can add new user or guest user.my application installed in owner profile.when message received application play audio on loudspeaker.

so want detect device running in owner profile @ specific point ?

ex: xxxmanager.isownerprofileactive();

note: there way app can figure out if profile in background/ foreground.using intent.action_user_background / intent.action_user_foreground broadcasted system.but looking api.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -