简体   繁体   中英

Android: any-screen capture without ROOT and constant USB connection

I'm trying to make an app that takes a video capture of the screen by taking individual snapshots. I've been looking into taking the snapshot without root, and seems that most solutions use ddmlib and require the device to be constantly connected via USB.

The only solution that doesn't require root and a constant usb connection is the android screenshot library. However, from the forum comments as well as my experience with the demo app, this library doesn't work very reliably/consistently.

Is there any other solution?

Note: I've also looked at the Noroot Screenshotit app ( https://play.google.com/store/apps/details?id=com.edwardkim.android.screenshotitfullnoroot&hl=en ), and seem like they have a similar approach to the android screenshot library, but have no idea how they make it more reliable. If anyone has an idea, that would be helpful as well.

Thanks

Edit: We've already got the USB-connected implementation, but we want to be able to do it on the device alone, without needing any connection to another PC.

As of Android 5.0+, you can use the new functionality in the SDK called media projections to do screen capture without root privileges or a USB connection. There is sample code by Google available here .

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