Reputation: 11053
I need to setup some kind of repeating task to run every 30 minutes to do some checking and updating.
Like widgets (that are part of an app) are being updated every 30 minutes (if setup this way). I have a separate app which is only a widget and another app without a widget. Is it possible to update the widget for example every 30 minutes without the app running (like a widget that is part of an app) ?
Many thanks!
Upvotes: 1
Views: 1838
Reputation: 7491
I would recommend using the AlarmManager and setting up a repeating alarm. Here is some example code I found. Here is another.
Upvotes: 3