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.
精彩评论