开发者

Multiple subscriptions on the GPS device

开发者 https://www.devze.com 2023-01-29 16:26 出处:网络
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

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

精彩评论

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