on power supply • tasks that require network access or a Wi-Fi connection. • device is idle • start after, deadline, predefined time interval • batch jobs
true from on the onStopJob to restart the job. The onStartJob is performed in the main thread, if you start asynchronous processing in this method, return true otherwise false.
to access our service and only it can do it <service android:name=".service.TestJobService" android:permission="android.permission.BIND_JOB_SERVICE" android:exported="true"/>
you must include this condition) • Charging / Idle (do heavy operations while charging) • Minimum Latency / Delay • Periodic • Persistent (needs RECEIVE_BOOT_COMPLETED) • Extras