Reputation: 3155
I would like to create background process on Android which would monitor incoming calls. I do not want to run it like other application, rather it should always run in the background with NO UI. I am aware that we can use service as background process and start them in the UI to do complex tasks in the background. Is there anyway to create a non-ui application in android and run it in the background as service (daemon). Thanks B
Upvotes: 0
Views: 1594
Reputation: 5183
Since you want to monitor incoming calls, you should probably have a BroadcatReceiver handling these calls and do whatever you want, as it is closer to the philosophy of a Receiver than of a Service.
For more information you can check here for an example: http://www.vogella.de/articles/AndroidServices/article.html#receiver
Hope this helps!
Upvotes: 1