2

I want to control my android smartphone that after my son playing games on my phone after a specified time such as half an hour, the phone will be locked unless you submit the right password.

I don't know how to trigger the lock screen process.

How can I implement interrupting the games processes and lock the cellphone?

mitcc
  • 343
  • 4
  • 10

2 Answers2

0

How unlock and lock screen programatically in android Has some excellent information on immediately calling the lock screen. You could implement a system using an alarm manager to trigger this event.

Community
  • 1
  • 1
0

Here is a good example,

first thing you need to do this, U need to know when the screen gets unlock. So here you go.....

android-detect-phone-unlock-event-screen-on

After that you set a time for 30/40/50 minutes (as you wish). Once the timer fires, use below link to lock your screen.

lock-phone-screen-programmtically

And your work is done.

Community
  • 1
  • 1
surender8388
  • 474
  • 3
  • 12