Answer the question
In order to leave comments, you need to log in
How to programmatically take a screenshot of the entire layout in android?
You need to programmatically get a screenshot of the entire layout, and not just the visible part of the window
Answer the question
In order to leave comments, you need to log in
View v1 = getWindow().getDecorView().getRootView();
v1.setDrawingCacheEnabled(true);
Bitmap bitmap = Bitmap.createBitmap(v1.getDrawingCache());
v1.setDrawingCacheEnabled(false);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question