开发者

how to dynamically get valuse of gps every time i move my android phone?

开发者 https://www.devze.com 2023-02-28 13:36 出处:网络
in my application i need to update he values wh开发者_如何学运维en i move my android phone so that all the mapping that i am doing gets updated too.

in my application i need to update he values wh开发者_如何学运维en i move my android phone so that all the mapping that i am doing gets updated too. its an augmened reality application and i need to change the mapping data dynamically that are in service. please reply if anyone can help


You should take a look at LocationManager#requestLocationUpdates. One parameter is minDistance. You can use it to set the minimum distance interval in meters for notifications.

So for example if you set it to 10, then you will get a new location, every time you have moved 10 meters.

0

精彩评论

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