I use these lines to take screenshot of my activity:
View toppest = ((ViewGroup) ctx.getWindow().getDecorView().findViewById(android.R.id.content)).getChildAt(0);
toppest.setDrawingCacheEnabled(true);
Bitmap bmap = toppest.getDrawingCache();
Utils.saveBitmapOnSdcard(bmap);
toppest.setDrawingCacheEnabled(false);
Anyway, this screenshot not contain actionbar.
How I can make screenshot with actionBar ?
For information: I use Sherlock actionbar implementation with windowActionBarOverlay option to "true".