【问题标题】:JobIntentService for Oreo and pre Oreo奥利奥和奥利奥前的 JobIntentService
【发布时间】:2017-09-11 10:26:50
【问题描述】:

任何人都曾为 O oreopre O 使用过 JobIntentservice。我从developer.android.com 阅读了更多关于JobIntentService 的信息,但他们没有提到完整的示例。

【问题讨论】:

标签: android-8.0-oreo


【解决方案1】:

JobIntentService 与 IntentService 非常相似,其中会调用“onHandleWork”,表示 Service 已启动执行工作。 检查THIS 转换为 JobIntentService

【讨论】:

  • 在这里添加一些描述
  • JobIntentService 的工作方式与 Service 相同,但是它将工作排入兼容 Android 目标上的 JobScheduler 中。查看 [THIS][1] 了解详细信息 [1]:android.jlelse.eu/…
  • JobIntentService 听起来很完美,只是你实际上不能取消工作(据我所知)。
  • 用户可以从设置中停止对任何特定应用程序使用 JobIntentService 吗? @Rhonage
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-08-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多