Re: [android-developers] How to handle the Power Button

2011-03-02 Thread Rocky
I restructure the code, now its working fine for in HTC MOTOROLLA, but it is not working in SONY XPERIA X10 On Thu, Jan 6, 2011 at 11:09 PM, Rocky rkjhaw1...@gmail.com wrote: thax for reply On Thu, Jan 6, 2011 at 9:50 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 6, 2011 at 5:13

Re: [android-developers] How to handle the Power Button

2011-01-06 Thread Rocky
Hi, my broadcast receiver is not receiving power on or off message my broadcase receiver -- * import* android.content.BroadcastReceiver; * import* android.content.Context; * import* android.content.Intent; * import* android.util.Log; * public* *class* LockScreenReceiver *extends*

Re: [android-developers] How to handle the Power Button

2011-01-06 Thread TreKing
On Thu, Jan 6, 2011 at 5:13 AM, Rocky rkjhaw1...@gmail.com wrote: my broadcast receiver is not receiving power on or off message 1 - Google ACTION_SCREEN_OFF (or ACTION_SCREEN_ON) 2 - Marvel at the very first link that explains your problem. 3 - Remember for future consideration :-)

Re: [android-developers] How to handle the Power Button

2011-01-06 Thread Rocky
thax for reply On Thu, Jan 6, 2011 at 9:50 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 6, 2011 at 5:13 AM, Rocky rkjhaw1...@gmail.com wrote: my broadcast receiver is not receiving power on or off message 1 - Google ACTION_SCREEN_OFF (or ACTION_SCREEN_ON) 2 - Marvel at the very

[android-developers] How to handle the Power Button

2011-01-05 Thread Rocky
Hi All, I'm trying to handle the Power button nature. My problem is, when i'm inside the my apps, and press the power button for lock the screen, and again press the power button for unlock the screen, i'm redirecting over the same Activity where i was initially. But, i want, when i press the

Re: [android-developers] How to handle the Power Button

2011-01-05 Thread TreKing
On Wed, Jan 5, 2011 at 8:24 AM, Rocky rkjhaw1...@gmail.com wrote: how can i handle it. You can't, AFAIK. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app

Re: [android-developers] How to handle the Power Button

2011-01-05 Thread Rocky
Hi TreKing, Thanks to reply, is any other way to handle it. On Wed, Jan 5, 2011 at 9:40 PM, TreKing treking...@gmail.com wrote: On Wed, Jan 5, 2011 at 8:24 AM, Rocky rkjhaw1...@gmail.com wrote: how can i handle it. You can't, AFAIK.

Re: [android-developers] How to handle the Power Button

2011-01-05 Thread TreKing
On Wed, Jan 5, 2011 at 11:33 AM, Rocky rkjhaw1...@gmail.com wrote: Thanks to reply, is any other way to handle it. There are broadcasts for the screen coming on and off, I think. Look through the docs for your options and handle one of those.

Re: [android-developers] How to handle the Power Button

2011-01-05 Thread Rocky
Thanx TreKing. On Wed, Jan 5, 2011 at 11:09 PM, TreKing treking...@gmail.com wrote: On Wed, Jan 5, 2011 at 11:33 AM, Rocky rkjhaw1...@gmail.com wrote: Thanks to reply, is any other way to handle it. There are broadcasts for the screen coming on and off, I think. Look through the docs for