Sorry, I fixed this a while ago, but forgot to post the answer.
It seems that MapView should be placed in the layout container before it displays correctly. The following snippet shows what I did to make the sample work.
LinearLayout linearLayout = new LinearLayout(this); GoogleMapOptions options = new GoogleMapOptions(); options.camera(new CameraPosition(new LatLng(0, 0), 1, 0, 0)); mMapView = new MapView(this, options); linearLayout.addView(mMapView); setContentView(linearLayout);
source share