Can we do lollipop device screen screening on Android without user interaction

I am trying to set up screen binding in my application. But in the lollipop device before pinning the screen and canceling its user interaction request. If we click "OK", then only the screenshot of the screen works.

Is there a way to remove the user interaction dialog when the screen is connected?

+3


source to share


1 answer


Yes you can use Activity.startLockTask()



+1


source







All Articles