简体   繁体   中英

android is there a way to take screenshot of home and other apps that are not yours programmatically?

I already made a button to be overlaid in the system window, only thing is I don't know how to take screenshot programmatically from that button to take screenshot of home screen or any other screen (not my activity).

What I want is how to programmatically run the combo keys to initiate the screenshot? (like pressing both power and volume down key at the same to take screenshot)

I know using adb command required root (which I don't want to) , you can using getrootview but only inside your own activity (which I don't want to) .

Android Lollipop (5.0)开始,您可以使用MediaProjection截屏。

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