简体   繁体   English

使用浮动气泡作为后台服务拍摄用户当前活动的屏幕截图。 有什么建议么?

[英]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. 要截取屏幕截图,我必须仅使用MediaProjection还是其他方法。 Saving the screenshot to the SD card is not of concern. 无需将屏幕快照保存到SD卡。 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. 无法将浮动气泡实施到MediaProjection中。 I am able to take a screenshot of the Floating Bubble App's activity alone by clicking on the floating bubble. 我可以通过单击浮动气泡来单独拍摄Floating Bubble App的活动的屏幕截图。 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 要截取屏幕截图,我只需要使用MediaProjection

Yes. 是。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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