定时任务,采用AlarmManager+Service实现定时执行任务功能,Foreground Service+Timer也可以实现,只是容易被设备厂商拦截,所以才采用AlarmManager
-
Updated
May 15, 2020 - Java
定时任务,采用AlarmManager+Service实现定时执行任务功能,Foreground Service+Timer也可以实现,只是容易被设备厂商拦截,所以才采用AlarmManager
Add a description, image, and links to the servicerunninginbackground topic page so that developers can more easily learn about it.
To associate your repository with the servicerunninginbackground topic, visit your repo's landing page and select "manage topics."