i want to perform 2 tasks.
First should repeat once in every 10min
Second should repeat every minute.
Example
Opening a website in first task
Opening another website in second task.
Thanx in advance
i want to perform 2 tasks. First should repeat once in every 10min Second
Share
For the scheduling part you can use the AlarmManager
For instance:
Then inside your receiver class you can start an IntentService:
MyServicelooks roughly like:And finally, don’t forget to register
MyReceiverin the manifest file:As well as your service: