Take snapshot of map


Capture screen shot of GoogleMap Android API V2

How to get Bitmap of MapView from Android Google Maps API V2


possible solutions

Taking screenshot of Android OpenGL




Hiding and Showing on screen Markers with Google Maps Android API V2


OPen the intent of camera

private void takeSnapshot2() {
// create Intent to take a picture and return control to the calling application
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

// fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); // create a file to save the image
File imageFile = new File(Environment.getExternalStorageDirectory() + “/test3.png”);
intent.putExtra(MediaStore.EXTRA_OUTPUT, imageFile); // set the image file name

// start the image capture Intent
startActivityForResult(intent, 100);



Taking snapshot of screen

LinearLayout mLayoutRoot = (LinearLayout) findViewById(R.id.parent);
mLayoutRoot.setDrawingCacheEnabled(true); //mLayoutRoot is your Parent Layout(may be RelativeLayout, LinearLayout or etc..)

Bitmap mBitmap= mLayoutRoot.getDrawingCache();
try {
FileOutputStream out = new FileOutputStream(Environment.getExternalStorageDirectory() + “/test.png”);
mBitmap.compress(Bitmap.CompressFormat.PNG, 90, out);
Toast.makeText(this, “snapshot taken”, Toast.LENGTH_SHORT).show();
} catch (Exception e) {}

6 Ways To Take Screenshots On Android

SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()

    View v1 = mapFragment.getView();
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s