Programming Tips - How can schedule non-time critical tasks?

Date: 2017aug18 OS: Android Language: Java Q. How can schedule non-time critical tasks? eg cleanup. A. Use JobScheduler https://developer.android.com/reference/android/app/job/JobScheduler.html