To take the screenshot do I have to use only MediaProjection or is there another way. Saving the screenshot to the SD card is not of concern. Only obtaining the screenshot of the current activity the user is on, by clicking on the floating bubble which runs as a background service.
Having trouble implementing the floating bubble into the MediaProjection. I am able to take a screenshot of the Floating Bubble App's activity alone by clicking on the floating bubble. My goal however, is to get a screenshot of the current activity ( Homescreen, or any other app) the user is on when the floating bubble is clicked.