How to shut down phone from within an Application?

by TonyDoc » Sat, 27 Feb 2010 06:20:57 GMT


Sponsored Links
 Is there anyway I can shut down the phone from my app without the need
for user confirmation?

--



Other Threads

1. Share x10i dong. Siapa aja yg pake?

Siapa aja yg pake x10i nih disini,siapa tau bs ngasih trik2 mantep bwt saya
biar tampilan x10i saya mantep...

Hihihihi

Sent From htc Magic 32A Firmware 2.1 htc Sense.

-- 
"Indonesian Android Community [id-android]" 

2. WiFi data transfer stalls as soon as screen becomes blank

Hello everyone,

I am currently trying to figure out how to fix an annoying bug in
Sipdroid [1], which seems to be triggered by a power management
optimization in Android 2.1:

While a SIP (VoIP) call is in progress via WiFi, the data transfer
becomes unreliable (and basically stalls) as soon as the display goes
blank after the display timeout or proximity sensor has been
triggered. As soon as the display comes back (by hitting the power
button or releasing the proximity sensor) the data transfer reverts
back to normal.

Currently, the only possible workaround seems to be to acquire a
PowerManager.SCREEN_DIM_WAKE_LOCK for the duration of the call, which
reliably prevents the issue from surfacing. Still, I think it would be
beneficial to come up with a solution that allows the screen to become
blank (if only for reducing battery consumption).

I already tried getting a WifiManager.WIFI_MODE_FULL to no avail.

Any hint how to sort this out is much appreciated!

Thanks,
Thilo

[1] http://sipdroid.org/

-- 

3. How to simulate speed on emulator

4. Multiple - multiple choice dialogs/activities, questionnaire, one question at the time

5. Wrong date in Calendar day layout, Showing "Thursday 01-Jan-1970".

6. gridview dialog

7. More Button in Expanded Menu