To solve it call setDrawingCacheEnabled(false) and then setDrawingCacheEnabled(true) to re-load the cache bitmap.
Modify onClick() method of btnCaptureScreen's OnClickListener:
btnCaptureScreen.setOnClickListener(new OnClickListener(){ @Override public void onClick(View arg0) { screen.setDrawingCacheEnabled(false); screen.setDrawingCacheEnabled(true); bmScreen = screen.getDrawingCache(); showDialog(ID_SCREENDIALOG); }});
No comments:
Post a Comment