My app needs to remove the lock screen of Android devices. It is done as mentioned here and it works.
When does the lock screen come back? For example suppose I write those lines of code in my main activity and the user starts my app, until when the lock screen will not appear?