Task scheduling | Background work | Android Developers
Explains how to use WorkManager to schedule tasks that will run across app or device restarts.