更新时间: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