简体   繁体   English

Android 捕获当前屏幕。 不活动

[英]Android Capture current screen. not Activity

about android capture.关于android捕获。 The function of the application is that when you press a specific button, One overlay button located at the top of the home screen of the device is generated.该应用程序的功能是当您按下特定按钮时,会生成一个位于设备主屏幕顶部的叠加按钮。 When I press the overlay button, I want to capture the screen of the device I'm currently viewing, not the application screen.当我按下覆盖按钮时,我想捕获我当前正在查看的设备的屏幕,而不是应用程序屏幕。 I want to capture the top screen, but only the activity done by the application is captured.我想捕获顶部屏幕,但只捕获应用程序完成的活动。 How should I capture the screen I'm currently viewing?我应该如何捕获我当前正在查看的屏幕?

I tried researching this problem for days before but I do not think that it is possible .几天前我尝试研究这个问题但我认为这是不可能的 Then I have an idea that instead of try to screen shot "outside" of app, we can use Service to keep our app alive, make back ground transparent and detect screenshot action of device .然后我有一个想法,而不是尝试在应用程序的“外部”屏幕截图,我们可以使用 Service 来保持我们的应用程序处于活动状态,使背景透明并检测设备的屏幕截图操作 You may want to try com.abangfadli.shotwatch你可能想试试com.abangfadli.shotwatch

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

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