Search code examples
androidlockingkeypad

Android app launches on opening lockscreen


I want my app or a part (any activity) of the app to be launched on opening the lockscreen, i.e, when we unlock the keypad of our phone, my activity should start running.. Thanks in advance. :D enter image description here


Solution

  • Try this one A way to get unlock event in android?

    It's using ACTION_USER_PRESENT receiver, but stil could help you.