开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜