atasoyh
atasoyh

Reputation: 3145

How can I sense if a phone is in standby or sleep mode(dor Nokia)?

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

Answers (2)

bharath
bharath

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

Oben Sonne
Oben Sonne

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

Related Questions