开发者

Multiple subscriptions on the GPS device

I'm programming a Android application which have a background service that polls the GPS now and the开发者_如何学JAVAn. My question regards if it's possible for other applications to access the GPS during my service uses it?


Your App will not prevent other Apps from receiving position updates. Android will start the GPS receiver when it needs to serve calls to listener registered with requestLocationUpdates(). This works for multiple Apps at the same time.

The only interferece will be that when Android is already serving updates, there is no warm-up phase when you register a new listener.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜