Can't use PowerManager object
in
Android Processing
•
2 years ago
I'm trying to turn off the whole sleep mode thing, and one of the methods I've found is ti use the PowerManager object found
here. My problem is that I get an error when I try to use
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
Actually just declaring Powermanager pm; gives me the error "cannot find symbol"
I'm not really sure if I'm using the SDK impoperly or something, because I've got the accelerometer working.
Any sort of insight into this problem or perhaps a hint as to where I can go for more info would be appreciated.
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
Actually just declaring Powermanager pm; gives me the error "cannot find symbol"
I'm not really sure if I'm using the SDK impoperly or something, because I've got the accelerometer working.
Any sort of insight into this problem or perhaps a hint as to where I can go for more info would be appreciated.
1