【问题标题】:Android google play services and IntentServiceAndroid google play 服务和 IntentService
【发布时间】:2014-04-12 09:55:40
【问题描述】:

我想使用 google play 服务来创建一个应用程序。我的目标是即使应用在后台也能使用位置信息。

我必须在 Intent 服务中创建与 google play 服务的链接,或者使用示例活动并避免在应用程序处于后台时停止连接??

【问题讨论】:

  • 欢迎来到 StackOverflow!你的问题不是很清楚,如果你改进它,你可能会得到更好的答案。您能否提供您尝试过的内容、任何代码示例等?也可以看more tips how to ask

标签: android google-play-services android-location


【解决方案1】:

使用挂起的 Intent 方法并使用它设置您的 intentService,这样当 Android 启动 Intent 时您的服务就会启动。

【讨论】:

  • 谢谢,这是我使用的方法,但我不确定
猜你喜欢
  • 1970-01-01
  • 2014-02-05
  • 1970-01-01
  • 2015-12-25
  • 1970-01-01
  • 2013-07-17
  • 2015-03-06
  • 2014-05-08
  • 1970-01-01
相关资源
最近更新 更多