user1806772 user1806772 - 23 days ago 13
Android Question

Android, Eclipse & CM10.1 Profile Manager

I want to switch cm profile manager profiles from within my app.

I found that i need to get the service from ProfileManager, so after digging in cm10 sources i figured

import android.app.IProfileManager;
import android.app.ProfileManager;


will do the deal, but how do i have to import this in eclipse?

Do I have to download and include full cm10 sources?

Answer

Just in case someone is still trying to find a way to control CM Profiles:

CM introduced it's platform SDK, which allows you to do just that. https://github.com/CyanogenMod/cm_platform_sdk/wiki

It's also on maven central

dependencies {
    compile 'org.cyanogenmod:platform.sdk:4.+'
}