我想在Google map 上显示我的当前位置。它应该是动态变化的,即应动态设置经度和纬度。
就像现在我在新德里,并且如果我启动我的android应用程序一样,我的当前位置应该在新德里显示,并且如果我去其他城市,它应该发生变化。
最佳答案
获取当前位置
What is the simplest and most robust way to get the user's current location on Android?
并将该值传递给Google Map API。
我想在Google map 上显示我的当前位置。它应该是动态变化的,即应动态设置经度和纬度。
就像现在我在新德里,并且如果我启动我的android应用程序一样,我的当前位置应该在新德里显示,并且如果我去其他城市,它应该发生变化。
最佳答案
获取当前位置
What is the simplest and most robust way to get the user's current location on Android?
并将该值传递给Google Map API。