I'm learning about the android. Now, I want to display a button that can turn off the screen. That is when the user click the button the screen off as the user click the power button. How can I do this? Thank you.
A:
Hi try looking at a previous thread.
http://stackoverflow.com/questions/1875669/calling-hidden-api-in-android-to-turn-screen-off
But if you are just learning Android, there might be more simple things to try first :) see the developer guide on http://developer.android.com/guide/index.html
madsleejensen
2010-10-18 13:08:58
I saw this thread. But I can't understand completely. Is this means that I can't do this if I don't want to call the hidden api.
Jerome
2010-10-18 13:12:23
As they describe in the thread, you can only manipulate the screen brightness.
madsleejensen
2010-10-18 13:50:08