I want make a screen shot on my device with clicking the button
I use the following code:
View view = getWindow().getDecorView();
view.setDrawingCacheEnabled(true);
view.buildDrawingCache();
Bitmap bitmap = view.getDrawingCache();
But I found that the picture I captured does not have a status bar. I just want the entire screen of the device. Do you know how can I fix that?