Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.view.View; public class Main { public static Bitmap takeScreenShot(View view) { view.setDrawingCacheEnabled(true); view.buildDrawingCache(true); Bitmap res = Bitmap.createBitmap(view.getDrawingCache()); view.setDrawingCacheEnabled(false); return res; } }