【问题标题】:Is it possible for Android application that is running in background to use location or GPS services在后台运行的 Android 应用程序是否可以使用位置或 GPS 服务
【发布时间】:2013-03-06 04:03:59
【问题描述】:

我只是想确保当前在后台运行的应用程序(或所有应用程序)(作为后台服务或类似服务)可以访问定位服务(GPS 等)在 Android 上。

我还想知道这是否是 Android 应用程序的正确行为(规范链接等)以及 Google 是否会批准此类应用程序在 Google Play 商店中下载?

所有版本的 Android 都一样吗?

答案似乎是肯定的,但我想 100% 确定我做对了。

我查看了以下线程,但我不确定它们是否能准确回答我的问题(可用性、Android 中设计的正确行为等)

Location tracking in background in android

Android: How to periodically send location to a server

Send Current Location to server periodically in android

android handler loop

Android: I want to obtain location using GPS in the background for use with a directions tool in my app, how?

【问题讨论】:

    标签: android geolocation location background-process


    【解决方案1】:

    是的。定位服务(通过 GPS 和网络提供商)可以在后台服务中使用。但是请记住,GPS 非常耗电,在后台长时间使用可能会对用户的电池寿命产生巨大影响。

    此外,Google Play 没有申请审核流程。

    【讨论】:

      【解决方案2】:

      答案是肯定的,Google 会毫无问题地在 Play 商店中接受您的应用(只要您不向用户隐藏您的应用在后台执行的操作)

      为了解决 Bradly 和 Raghav 指出的电池相关问题,我强烈建议您阅读 Google 的以下文章:http://developer.android.com/training/efficient-downloads/index.html

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多