Android details keep the mobile phone screen always bright without screen lock, android screen lock
Today, I used a very interesting project. I checked the information on the Internet and asked to click a key to keep the screen on screen.
I tried several methods and found that the following method is the simplest,
GetWindow (). addFlags (WindowManager. LayoutParams. FLAG_KEEP_SCREEN_ON );
Can an Android phone automatically turn off the screen but not lock the screen?
Yes!
I didn't enable the screen lock, and the screen was highlighted again on the black screen.
Some rom and some rom do not. No, you can download a third-party program to achieve "no screen lock"
There is a way to make the Android phone never automatically lock the screen and automatically hide the screen
Settings-Application-development, some mobile phone development is directly in the settings, in short, it should be on the usb debugging side, there is a wake-up state, that will always shine when the power is turned on