【问题标题】:Schedule JobIntentService in Android在 Android 中安排 JobIntentService
【发布时间】:2018-02-07 11:16:59
【问题描述】:

我正在将我的应用程序的 IntentServices 移动到 JobIntentServices,但我的一些 IntentServices 正在使用 AlarmManager 运行以使用 PendingIntent 安排 IntentService 运行

如何安排支持 Android 16+ 的 JobIntentService 运行?

谢谢

【问题讨论】:

    标签: java android performance kotlin


    【解决方案1】:

    AlarmManager 使用PendingIntent 指向BroadcastReceiver。让onReceive() 中的接收者拨打enqueueWork() 获取JobIntentService

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-25
      • 1970-01-01
      • 2011-11-28
      • 2012-07-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多