Detect phone going to sleep mode

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Detect phone going to sleep mode

Postby csengyee » Mon Dec 21, 2009 1:05 am

Hi,

Is there a way to detect phone going into sleep mode? I searched through the entire Android doc but couldn't find any related intent.

Or Android OS doesn't broadcast this intent?
csengyee
Junior Developer
Junior Developer
 
Posts: 19
Joined: Mon Jul 13, 2009 3:07 pm

Top

Postby i4nc4mp » Fri Jan 01, 2010 3:42 am

no it does. the event can be seen by a broadcastReceiver screen_off
i4nc4mp
Developer
Developer
 
Posts: 39
Joined: Sat Dec 12, 2009 6:44 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 5 guests