How get event the system into sleep or suspend mode?

Tutorials with advanced 'difficulty' and more Lines of Code.

How get event the system into sleep or suspend mode?

Postby ausmus » Wed Nov 26, 2008 10:56 am

Dear all,
I am a new comer for developing android.I have a question about get the suspend/sleep mode event.
I want to write a BroadcastReciever which can get the suspend/sleep mode action.
How can I do directly or indirectly ? or Where can I reference information about it ?
ausmus
Freshman
Freshman
 
Posts: 3
Joined: Wed Oct 01, 2008 7:44 am

Top

Re: How get event the system into sleep or suspend mode?

Postby maikidol » Mon Mar 23, 2009 9:55 am

does anyone know how to do it??
:)
maikidol
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Mar 23, 2009 9:47 am

Postby bobbyrossberg » Tue Aug 18, 2009 6:39 pm

I too am looking for a solution to this problem, please if anyone knows how to put the phone to sleep/hibernate it would be much appreciated if you can share the solution.
bobbyrossberg
Freshman
Freshman
 
Posts: 2
Joined: Sun Aug 16, 2009 10:31 pm

Re: How get event the system into sleep or suspend mode?

Postby oba » Wed Dec 09, 2009 3:24 pm

ausmus wrote:Dear all,
I am a new comer for developing android.I have a question about get the suspend/sleep mode event.
I want to write a BroadcastReciever which can get the suspend/sleep mode action.
How can I do directly or indirectly ? or Where can I reference information about it ?


you can look for the ACTION_SCREEN_OFF intent in your broadcast receiver.
oba
Freshman
Freshman
 
Posts: 5
Joined: Wed Dec 03, 2008 8:55 am

Top

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 8 guests