我将应用程序的IntentService移至JobIntentServices,但是我的一些IntentServices正在使用AlarmManager运行,以使用PendingIntent安排IntentService运行
如何安排支持Android 16+的JobIntentService运行?
谢谢
最佳答案
让AlarmManager
使用指向PendingIntent
的BroadcastReceiver
。让接收方使用onReceive()
调用enqueueWork()
作为JobIntentService
。
关于java - 在Android中安排JobIntentService,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48662474/