tags:

views:

51

answers:

1

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
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
As they describe in the thread, you can only manipulate the screen brightness.
madsleejensen