Is it even possible? It's fine if root is required. The reason behind the question is I want to take screenshots of other apps, only found this way which requires activity: https://stackoverflow.com/a/10296881/634821
Asked
Active
Viewed 193 times
0
-
1with root, use the screenshot helper that adb uses, see the adb sources for your android version – Chris Stratton Jun 28 '12 at 09:19
-
1try http://code.google.com/p/android-screenshot-library/ – idiottiger Jun 28 '12 at 09:28
1 Answers
1
Is it even possible?
No. They run in separate processes than yours -- you have no means of referencing those objects from your own process.
The reason behind the question is I want to take screenshots of other apps
This is not supported on the device for obvious privacy and security reasons. You are welcome to use developer tools to take screenshots, as some of the comments on your question indicate.

CommonsWare
- 986,068
- 189
- 2,389
- 2,491
-
Thank you. I've tried programs that are supposed to run on a PC and show a live picture from the connected device via adb, but their frame rate is way too low. Do you think it's possible to get at least 20 fps if making screenshots locally on the device? – Violet Giraffe Jun 28 '12 at 12:21
-
@VioletGiraffe: "but their frame rate is way too low" -- considering I wrote one of those, and my code was the precursor to another one, I feel your pain. :-) That is a limitation of the `adb` protocol as much as anything else. "Do you think it's possible to get at least 20 fps if making screenshots locally on the device?" -- I have no idea, as I have never tried that. I do not know if the Android Screenshot Library will be gated by the same constraints that affect tools like Droid@Screen (minus USB transfer time). – CommonsWare Jun 28 '12 at 12:23