android Map v2中终结器引发的未捕获异常。?如何解决?
我的代码如下:android Map v2中终结器引发的未捕获异常。?如何解决?,android,exception,map,Android,Exception,Map,我的代码如下: I am integrating google map v2 and i got these below errors in logcat, so what happen wrong with code: private GoogleMap googleMap; googleMap = ((SupportMapFragment) getSupportFragmentManager() .findFragmentById(R.id.locat
I am integrating google map v2 and i got these below errors in logcat, so what happen wrong with code:
private GoogleMap googleMap;
googleMap = ((SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.location_map)).getMap();
if (googleMap == null) {
googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
UiSettings mUiSettings = googleMap.getUiSettings();
mUiSettings.setMyLocationButtonEnabled(true);
}
我的日志如下:
I am integrating google map v2 and i got these below errors in logcat, so what happen wrong with code:
private GoogleMap googleMap;
googleMap = ((SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.location_map)).getMap();
if (googleMap == null) {
googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
UiSettings mUiSettings = googleMap.getUiSettings();
mUiSettings.setMyLocationButtonEnabled(true);
}
什么是UiSettings课程?发布它。@SimplePlan,我没有使用UIsetting类,我有上面发布的代码,谢谢