Only if you modify the firmware, or possibly root your phone. Normal
SDK applications cannot power off the phone.

On Mon, Dec 27, 2010 at 12:16 PM, Daddym85 <[email protected]> wrote:
> I have a Samsung Galaxy S with  Android 2.2. In order to power off the
> phone, I must press and hold the  power off key. I would like to
> simulate this action from a Java code. Can I do it?


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

Reply via email to