赞
踩
adb 中screencap命令用来截屏 命令如下:
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String date = simpleDateFormat.format(new Date(System.currentTimeMillis()));
Runtime.getRuntime().exec("screencap -p /sdcard/" + date.replaceAll(" ", "-") + ".png");
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。