user9173162
user9173162

Reputation:

How to get broadcast receiver when an app is killed manually?

I am developing an app which records unlocks of mobile. But I am having problem when my app is manually killed i.e. when you remove app from recent apps. How can i record broadcast even when app is killed?

I am using ACTION_USER_PRESENT for recording unlocks.

Upvotes: 3

Views: 1439

Answers (1)

Rodrigo Gontijo
Rodrigo Gontijo

Reputation: 587

You'll need to create a Service and inside this service create the broadcast receiver that you need.

This answer Certainly will help you : Implement Broadcast receiver inside a Service

Upvotes: 3

Related Questions