0

Possible Duplicate:
How to power off an Android device?

I have a requirement to implement power-off functionality on android. I am unable to get that. Is there anything I can call then my mobile will power-off. How do I write code to power-off?

Thanks

Community
  • 1
  • 1
Sunil Kumar Sahoo
  • 53,011
  • 55
  • 178
  • 243

2 Answers2

1

Sorry, there is no way to do it !

Anass
  • 6,132
  • 6
  • 27
  • 35
  • please try to be more descriptive in your answers and leave more then one sentence. Why is it not possible? – Janusz Aug 18 '11 at 08:58
0

I found there is no API in the Android SDK to allow user apps to do this. Force the device to go to sleep using PowerManager.goToSleep()

Sunil Kumar Sahoo
  • 53,011
  • 55
  • 178
  • 243