因为Activity中onResume()方法是在onCreat()方法之前的,所以调用onResume()时,mapView还没实例化,在onResume()方法中再加一句 变这样:
protected void onResume(){
super.onResume();
MapView mapView=(MapView)findViewById(R.id.bmapView);
mapView.onResume();
}
因为Activity中onResume()方法是在onCreat()方法之前的,所以调用onResume()时,mapView还没实例化,在onResume()方法中再加一句 变这样:
protected void onResume(){
super.onResume();
MapView mapView=(MapView)findViewById(R.id.bmapView);
mapView.onResume();
}