Skip to content Skip to sidebar Skip to footer

Run A Task In My App Once In Every Month

In my android app I have created a function that updates some fields in SQLite database, now I run this function manually and it is doing the job, but I want to run this function a

Solution 1:

To run your task periodically i recommend you to take a look at it JobScheduler api which is latest and more powerful for scheduling the job take a look at this https://developer.android.com/reference/android/app/job/JobScheduler.html if your app targets api >21 you must use jobscheduler if u want to support the lower version take a look at firebase job dispatcher:https://github.com/firebase/firebase-jobdispatcher-android


Post a Comment for "Run A Task In My App Once In Every Month"