On Thu, Mar 8, 2012 at 5:25 AM, Abhishek Sharma <abhitec...@gmail.com> wrote:
> I want to shutdown android device from application on pressing key.

This is not possible from an ordinary SDK application.

> Code snippet:
> public void poweroff()
> {
>   ShutdownThread.shutdown(context, true);
> }

There is no ShutdownThread in the Android SDK.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

-- 
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

Reply via email to