Reputation: 3145
I need to sense a phone's status. If it is sleep or standby mode I have to change my app's running code (to save power consumption). Is this supported by the JavaME API? ( for Nokias)
Upvotes: 2
Views: 288
Reputation: 14473
AFAIK Its difficult to achieve with j2me. But see this existing post. Here AlexR said the one solution. you can try like that. May be it helps you.
Upvotes: 1
Reputation: 9953
From what I remember, MIDlet.pauseApp()
gets called when the phone enters sleep/standby mode. Not sure about that, but it shouldn't be hard to check if this works.
Upvotes: 0