Im sure this is a very common problem but have not seen any questions asked on how to accomplish the following.
I created a service that runs every 5 minutes and gets called when the device has finished on BOOT_COMPLETE and this works just fine.
The problem I am encountering is when I am debugging on my device I have to re-boot my phone in order to get the service to launch. Is there a way for me to start this background service that runs every 5 mintues on Application Startup.
So what I need is to check if the service is running in the first place and if it is not start it.
Just to elaborate a little bit more, this service fetches data of the web so my ideal situation of having it get kicked off by BOOT_COMPLETE works just great. But in the scenarios that the user downloads the app and launches it this service will not get kicked off so I need a manual way of starting. If the service is not running, which it wouldn't be if the user just installed it I need to start it.