我正在从我的应用程序中拍摄android设备的屏幕截图,在我的华为设备中没有截屏实用程序,但现在我通过从其他设备上获取它来添加它,现在我可以使用截屏截图来捕获屏幕,但只有通知栏可见,其余图像是空白的。
发布于 2013-03-29 15:51:15
adb shell /system/bin/screencap -p /sdcard/img.png this is a shell command take screenshot simple and fast
Try this
Process sh = Runtime.getRuntime().exec("su", null,null);
OutputStream os = sh.getOutputStream();
os.write(("/system/bin/screencap -p " + "/sdcard/img.png").getBytes("ASCII"));
os.flush();
os.close();
sh.waitFor();https://stackoverflow.com/questions/15699182
复制相似问题