Question Detail

How to turn screen on and off programmatically in Android?

5 years ago Views 2166 Visit Post Reply

I want to Keep screen off when recieve SMS i have searched on google but not getting any working code. Is it possible to screen keep off anyway. Be screen off eight any notification raise or not. 
I have searched and found keep Screen On but not found any solution for Turn screen Off.

Thread Reply


- 5 years ago

This is System Settings you can't customize this settings.

Only you can access sensor which is use when call receive and screen off while sensor cover.