我有一个谷歌地图Activity,我想获取用户的位置,但我想使用的功能:getMyLocation()已弃用。这是我的一段代码:@OverridepublicvoidonMapReady(GoogleMapgoogleMap){mMap=googleMap;//Thisfunctionisdeprecated//Whatisthenewfunction?mMap.getMyLocation();//AddamarkerinSydneyandmovethecameraLatLngsydney=newLatLng(-34,151);mMap.addMarker(newMarkerOptio