I have this code in layout:
<FrameLayout>
<fragment
...
android:name="com.google.android.gms.maps.SupportMapFragment">
</fragment>
</FrameLayout>
But when i try use drawing cache, screenshot have only zoom bar (with + and - buttons) and text "Google" in left corner. I use next code for getting image:
View view = findViewById(R.id.frame);
view.setWillNotCacheDrawing(false);
view.destroyDrawingCache();
view.buildDrawingCache();
view.setDrawingCacheEnabled(true);
routeScreen = Bitmap.createBitmap(view.getDrawingCache());
view.setDrawingCacheEnabled(false);