How to simulate power off key

by Daddym85 » Tue, 28 Dec 2010 01:16:55 GMT


Sponsored Links
 Hi,
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?
Best regards,
Daddym85.

-- 



Re: How to simulate power off key

by Mark Murphy » Tue, 28 Dec 2010 01:29:08 GMT


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





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

-- 


Sponsored Links


Other Threads

1. Any way to uninstall application with "persistent=true"?

Any way to do so?

-- 

2. Ga bisa nge-fave di htc mail?

Saya cari-cari ternyata ga nemu untuk memfavoritkan sebuah e-mail di htc mail,
Memang tidak ada kah?

-- 
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. The Phone Without Compromise! *ratjoen Mode : ON... :D

4. How do you change EditText's popup list text colour?

5. AsyncTask & Queries

6. android:stateNotNeeded not work

7. How do you change EditText's popup list text colour?