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. problem about repo sync

Dear all,
  Does anyone meet the following problem when excute the "repo sync" command?
   
 * [new tag]         v1.6.8.3   -> v1.6.8.3
 * [new tag]         v1.6.8.4   -> v1.6.8.4
 * [new tag]         v1.6.8.5   -> v1.6.8.5
 * [new tag]         v1.6.8.6   -> v1.6.8.6
 * [new tag]         v1.6.8.7   -> v1.6.8.7
Fetching projects:  67% (77/114)  remote: Counting objects: 31, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 22 (delta 19), reused 0 (delta 0)
Unpacking objects: 100% (22/22), done.
   db54c33..8da2b92  android-2.6.29 -> korg/android-2.6.29
Fetching projects:  87% (100/114)  fatal: protocol error: bad line length 
character
error: Cannot fetch platform/packages/providers/CalendarProvider
r...@bards-laptop:/home/work/android/cupcake-1.5#


if any suggestions, will be great appreciate!


 bard.shen
2009-09-23 

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Sub Acivity fly-in direction?

Hi Guys,

Little question Ive been having difficulty finding an answer to.

My current app flies ina  sub activity when you flick-up.  problem is,
it flies in horizontally from the right.  I want it to fly in
vertically from the bottom to match the flick direction.

I'm sure this must be an xml property somewhere, but I can't find it.

Does someone have a pointer as to how to set this?

Thanks

JK

-- 

3. Reinstall and an App Widget...

4. Connecting to ERP Server

5. Apps di Androi

6. How to measure download speed ?

7. question about mapview "data"