使用浮动气泡作为后台服务来获取用户当前活动的屏幕截图.有什么建议? [英] take a screenshot of the current activity the user is on using a floating bubble running as a background service. Any Suggestions?

查看:115
本文介绍了使用浮动气泡作为后台服务来获取用户当前活动的屏幕截图.有什么建议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要截取屏幕截图,我必须仅使用MediaProjection还是其他方法.无需将屏幕快照保存到SD卡.通过单击作为后台服务运行的浮动气泡,只能获取用户当前活动的屏幕截图.

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.

在将浮动气泡实施到MediaProjection中时遇到麻烦.我可以通过单击浮动气泡来单独拍摄Floating Bubble App的活动的屏幕截图.但是,我的目标是获取单击浮动气泡时用户正在使用的当前活动(主屏幕或任何其他应用)的屏幕截图.

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.

推荐答案

要截取屏幕截图,我必须仅使用MediaProjection

To take the screenshot do I have to use only MediaProjection

是的

这篇关于使用浮动气泡作为后台服务来获取用户当前活动的屏幕截图.有什么建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆