A
A
Alexander Vasilenko2016-06-17 21:35:12
Android
Alexander Vasilenko, 2016-06-17 21:35:12

How to make the application send a certain Notification when trying to unlock the device?

Actually, the essence of the question is simple. How to make the application "see" the moment when the user tries to unlock the device or simply activates the screen.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Gapchenko, 2016-06-17
@artemgapchenko

It seems to me that the combination of intentions will Intent.ACTION_USER_PRESENTsave the Intent.ACTION_SCREEN_ONfather of Russian democracy. :) Register a custom handler for them in the manifest, and send a notification from it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question