Help me with the "Turn Off screen" app

Hello world!

I start developing BB10, I want to make a request, there can turn off the screen with 1 button icon on the screen.

How can I do? where should I start from?

Hi dominic9, welcome to the Forums of the Dev Support.

What you're trying to do can be done in 10 BlackBerry, there is no way to stop the screen programmatically.

Your application can set its own brilliance, but it will only apply to your application (brightness will return to normal when you exit / minimize the application), but even if the brightness is set to 0, the screen will be WE and touch screen will result in key events, which means that the user will continue to interact with the screen, but he won't see what it does.

Use this C API to control the brightness of your application:
https://developer.BlackBerry.com/native/reference/core/com.QNX.doc.screen.lib_ref/topic/screen_set_w...

Code snippet:
https://github.com/RodgerLeblanc/TheUnexposedAPIs/BLOB/master/src/backlight/backlight.cpp#L85

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for