Java – How to wake up my intent service every 5 minutes

How to wake up my intent service every 5 minutes… here is a solution to the problem.

How to wake up my intent service every 5 minutes

I

know someone has asked this question before, but I don’t get any answer, I want to create an intent service that runs threads all the time, but when I exit from the application, my service stops, and then the thread also stops. I need to create something to wake up the service every few minutes. Or something that prevents the termination of the service even when the application is terminated or closed.

This is how I started serving

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

Related Problems and Solutions