【问题标题】:IntentService to collect users location in the background on AndroidIntentService 在 Android 后台收集用户位置
【发布时间】:2015-10-29 13:31:01
【问题描述】:

我的 android 应用程序具有位置权限,我想做的是创建一个服务(可能是意图服务),每次其他应用程序使用 GPS 并将当前位置收集到我的应用程序 sqlite db 时,该服务将在后台启动(直到用户决定关闭 GPS 或存在使用 GPS 的应用)

这可能吗?如果可能的话:

1) 这个意图服务会是什么样子? 2) 我如何在我的 appmanifest 中配置它?

【问题讨论】:

    标签: android android-intent service background location


    【解决方案1】:

    这可能吗?

    不直接。您无法知道“其他应用是否使用 GPS”。

    欢迎您从the PASSIVE_PROVIDER 注册位置更新,这可能符合您的需求。

    【讨论】:

      猜你喜欢
      • 2020-11-08
      • 1970-01-01
      • 1970-01-01
      • 2012-10-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多