-----Original Message-----
From: Piren <gpi...@gmail.com>
Sender: android-developers@googlegroups.com
Date: Tue, 25 Jun 2013 04:53:07 
To: <android-developers@googlegroups.com>
Reply-To: android-developers@googlegroups.com
Subject: [android-developers] Re: Displaying the long Press Power off 
screen/dialog

this is not what he asked.

OP: Try sending events using 
http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_POWER

(this thread deals with the Menu key, it might help you as 
well: https://groups.google.com/forum/#!topic/android-developers/ZAXh2EKewKM 
)

On Tuesday, June 25, 2013 2:42:46 PM UTC+3, reaktor24 wrote:
>
> I am sure there is no way you can override the power button as it is an 
> integral feature of smartphones just like the home button which also cannot 
> be overridden.
>
> On Monday, 24 June 2013 16:33:46 UTC+1, ame...@googlemail.com wrote:
>>
>> Hey everyone, is there a way in Android to show the Phone Options screen 
>> that gets popped up when a user long presses on the Power button. On my 
>> Samsung Galaxy S3 it has the following options:
>>
>>
>>    1. Power Off
>>    2. Airplane Mode
>>    3. Restart
>>    4. Mute - Vibrate - Sound
>>
>> Is this possible to show this screen from my Application?
>>
>> Thanks
>>
>> Amey
>>
>>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to