So, I've read through the Power Managment tutorial. While I can follow the tutorial, it seems like a lot of extra work is done with manual additions to the XML. My understanding of the XML profiles is that they should declare permissions, that can then be acted upon through the code, similar to the way that the Scanner API can be accessed.
While I'm aware this isn't how it works, this is what I expect:
PowerManager powerManager = (PowerManager) emdkManager.getInstance(EMDKManager.FEATURE_TYPE.POWER);
Obviously, this isn't the case, but is there a way I can do something similar? My hope would be to declare my profile ahead of time (rather than parse XML at runtime), and simply operate based off of these predefined capabilities.