Why are you trying to do this anyway?

kris

On Thu, Jan 19, 2012 at 3:56 PM, Mark Murphy <[email protected]> wrote:
> This would do you no good. Not only can't you attack the device by
> simulating a power button press, but you cannot respond to power
> button events.
>
> On Wed, Jan 18, 2012 at 7:11 AM, ashiq sayyad <[email protected]> wrote:
>> Hi,
>>
>> I want to dispatch key event for Power button programatically.I tried
>> following line of code but its not working..
>>
>>  dispatchKeyEvent(new
>> KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_POWER));
>>
>> But this is not working..
>>
>> Any help on this most welcome..
>>
>> Thanks & Regards,
>> Ashiq  Sayyad
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to