简体   繁体   中英

take a screenshot of the current activity the user is on using a floating bubble running as a background service. Any Suggestions?

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.

To take the screenshot do I have to use only MediaProjection

Yes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM