0

I am creating an app in which I have 3 ImageViews, 1 EditText and a small map at the corner.
I want to convert the whole screen to a Bitmap.

I am converting it by using this method

private Bitmap ConvertToBitmap(LinearLayout layout) {

Bitmap map;

layout.setDrawingCacheEnabled(true);

layout.buildDrawingCache();
map=layout.getDrawingCache();
return map;}

It is working, but it's not showing the map.
Instead of the map it fills the map area with a black color.
I want to convert the whole screen to a bitmap, including the map.

Please help me solve this problem.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

0 Answers0