1

I need to make the screenshot of the screen of my device even if my application is in the background. I tried with the following code, but I just get the screenshot of the screen of my app even if it is in the background.

View rootview = v.getRootView();
rootview.setDrawingCacheEnabled(true);
Bitmap bmp = rootview.getDrawingCache();

Do you have any method or library to suggest?

user1169390
  • 151
  • 11

0 Answers0