String a [] = { "/system/bin/screencap", "-p", "/sdcard/screen.png" }; Runtime.getRuntime().exec(a);
Programming Tips - Java: How can I do a screenshot from Java code?
Date: 2015may13
OS: Android
Keywords: screen capture
Language: java
Q. Java: How can I do a screenshot from Java code?
A. If you have root access: