An update: Nutiteq SDK 3 has method for that also, code sample which saves screenshot to a folder as PNG file. It can be useful for automatic testing for example.
private void captureMapScreen(MapView _mapView, final String captureName) {
_mapView.captureRendering(new MapRenderListener(){
@Override
public void onMapRendered(com.nutiteq.graphics.Bitmap mapBitmap) {
Bitmap bmp = com.nutiteq.utils.BitmapUtils.createAndroidBitmapFromBitmap(mapBitmap);
FileOutputStream out = null;
String dir = Environment.getExternalStorageDirectory().toString() + "/test-screenshots/";
if(!new File(dir).exists()){
new File(dir).mkdirs();
}
String filename = dir + captureName ;
System.out.println("will try to capture map to "+filename);
try {
out = new FileOutputStream(filename);
// Note: compress is a VERY SLOW operation, it would be much better to do this in a background thread!
bmp.compress(Bitmap.CompressFormat.PNG, 100, out);
System.out.println("captured map to "+filename);
} catch (FileNotFoundException e) {
e.printStackTrace();
} finally {
try {
if (out != null) {
out.close();
}
} catch (IOException e) {
}
}
}
}, false);
}