So ive been working on a really simple app, it doesn't have to display or show anything when it runs, all I need it to do is when a call is ended run the routine within the activity. Basically its clearing the call log after a call(only of numbers pre-determined) currently an array with a few numbers..
Eventually if it works the way I want, ill add ability to manage that list, but for testing purposes, everything is hardcoded.
So right now within the onStart() I'm calling the method that handles the deletions, this all works great, but only works when you open or use the application, I want to install the app, and have it checking/monitoring the calls and when a call is ended, run the routine.
@override
public void onStart() {
super.onStart();
removeContactsLogFromPhoneLogs(numDeletes);
}
Ive read a few places about using Broadcaster and Intent, but nothing clear enough to point me in the right direction.
Since you cant create a Android Service(like on a windows pc) the next best thing is create a empty app that monitors for the call end.
Can anyone point me in the right direction on how I can change my app to either run all the time monitoring for ended calls or whatever other options there are to get this to work..
Like I said, currently if I run the application manually it will delete the numbers in the array from my call log, but its manual and you have to use the app, I want to be able to install the app, and have it already monitoring.
thanks.
Eventually if it works the way I want, ill add ability to manage that list, but for testing purposes, everything is hardcoded.
So right now within the onStart() I'm calling the method that handles the deletions, this all works great, but only works when you open or use the application, I want to install the app, and have it checking/monitoring the calls and when a call is ended, run the routine.
@override
public void onStart() {
super.onStart();
removeContactsLogFromPhoneLogs(numDeletes);
}
Ive read a few places about using Broadcaster and Intent, but nothing clear enough to point me in the right direction.
Since you cant create a Android Service(like on a windows pc) the next best thing is create a empty app that monitors for the call end.
Can anyone point me in the right direction on how I can change my app to either run all the time monitoring for ended calls or whatever other options there are to get this to work..
Like I said, currently if I run the application manually it will delete the numbers in the array from my call log, but its manual and you have to use the app, I want to be able to install the app, and have it already monitoring.
thanks.