I'd like to trigger an event when the user changes the phone's profile but I'm not sure how. Idealy, I could catch the a broadcast intent and know when the profile has changed but I haven't been able to find any documentation on this.
If I'm correct, the profile system is not a part of the stock AOSP but Cyanogenmod.
I've trudged through the only two profile-related classes I could find:
- https://github.com/CyanogenMod/android_frameworks_base/blob/cm-10.1/core/java/android/app/ProfileManager.java
- https://github.com/CyanogenMod/android_frameworks_base/blob/cm-10.1/core/java/android/app/Profile.java
The only broadcast intent that I could find was here.
Any idea on how this could be accomplished? My application only targets devices running Cyanogenmod 10.1. This is the profile manager from CyanogenMod to give you a clearer idea of what I'm talking about.