I've tried both methods to save a MapView as a bitmap which I've found here and none seem to work for me. The first option,
Bitmap bitMap = mMapView.getDrawingCache();
mMapView.setDrawingCacheEnabled(true);
bitMap = mMapView.getDrawingCache(true);
and the second,
Canvas offscreencanvas = new Canvas();
Bitmap bmap = Bitmap.createBitmap(mMapView.getWidth(), mMapView.getHeight(),
Bitmap.Config.ARGB_8888);
bmap.copy(Config.ARGB_4444, true);
offscreencanvas.setBitmap(bmap);
offscreencanvas.drawBitmap(bmap, 0, 0, null);
both result in a bitmap object with width and height of -1 so when I then try and use the bitmap as a texture, it doesn't show. I call the bitmap saving code in a button click, after the mapview has rendered but it still gives the same result.
Has anyone managed to do this?