且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

打开我的应用程序时如何显示用户的当前位置

更新时间:2022-12-29 21:00:51

googleMap.setMyLocationEnabled(true);
Location myLocation = googleMap.getMyLocation();

这些是获取当前位置的关键行.

These are the the key lines to get current location.

有关更多信息,请参考以下教程: Android使用以下方法在地图上显示当前位置谷歌地图api

for more info ,refer these tutorials: android show current location on map using google maps api

如何在google map android中获取当前位置