我如何让我在 android 上的谷歌地图应用程序开始放大我当前的位置而不按下或做任何事情?
编辑。问题解决了
Criteria cri= new Criteria();
String bbb = locationmanager.getBestProvider(cri, true);
Location myLocation = locationmanager.getLastKnownLocation(bbb);
double lat= myLocation.getLatitude();
double long = myLocation.getLongitude();
LatLng ll = new LatLng(lat, long);
mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(ll, 20));