I would like to know if it is possible to run my application whenever a new entry is recorded in the phone call log (i.e. outgoing, incoming or missed call).
I wrote an application to manage call log entries according to user preferences, listening to the publication of android.intent.action.PHONE_STATE events . My application is working fine while its process is running. However, if a user stopped my application using the killer application, the log entries could not be controlled since my application was not running. I need a way to make sure my application is running in the background if it is not already running when android.intent.action.PHONE_STATE happens .
Or can I run my application as a service that always runs?
Thanks in advance. Bala
source
share