How to get informed about phone state, when my app is destroyed. i.e, removed from memory?

84 Views Asked by At

Tried BroadcastReceiver, but only working when the app is not destroyed. When I go to background apps list and remove app by swiping, cannot receive any information about phone state. What I need is to get phone state and access call logs inorder to get call number and duration and save it into a database.

0

There are 0 best solutions below