vendredi 22 mai 2015

how to wake up my intent service every 5 minutes

i know this question is asked before, but i didn't get any answer, i want to create an intent service that run a thread all the time, but when i get out from the app my service is stopped then the thread stopped too. I need to create something to wake up the service every some minutes. or something to prevent killing the service even when app is killed or closed.

this is how i start my service

Intent intent= new Intent(Intent.ACTION_SYNC,null,this, IntentServ.class);

    startService(intent);

Aucun commentaire:

Enregistrer un commentaire