1. adb复制(push)文件到设备:
① adb shell
②
cd mnt
③
cd sdcard
④
mkdir MyFile
⑤
exit
⑥
adb push D:\aaa.txt /mnt/sdcard/MyFile/
如果文件夹已经存在,则不用创建。
2.adb
安装本地应用:
...
分类:
数据库 时间:
2015-01-28 09:57:32
阅读次数:
189
RootCommand("su -c ‘screencap /mnt/sdcard/screenaaa.png‘ && adb pull /sdcard/screenaaa.png") ;
/**
* 应用程序运行命令获取 Root权限,设备必须已破解(获得ROOT权限)
*
* @param command
* ...
分类:
移动开发 时间:
2015-01-27 13:38:53
阅读次数:
350
From:http://blog.csdn.net/u011290399/article/details/10363881在项目中,发现通过Android提供的API获取外置SDCard的操作一直不能成功,一直没有太多的时间解决该问题昨天週末,终于可以抽空研究了一下这个问题了在网上搜索下,结果百度的...
分类:
移动开发 时间:
2015-01-26 22:18:02
阅读次数:
203
public class MyService extends Service { private static final String TAG = "MyService"; File imagepath; @Override public IBinder onBind(In...
分类:
移动开发 时间:
2015-01-26 16:53:25
阅读次数:
176
一、为什么又选择OpenELEC
Raspbmc的体积庞大功能较多,相应的速度和性能要弱;OpenELEC是一个精简版,体积小功能少,相应的速度和性能都有提升。这就要看我们的选择了,如果像我一样用多个sdcard玩树莓派,那么用OpenELEC做家庭媒体中心就最合适不过了。...
分类:
Web程序 时间:
2015-01-24 10:14:56
阅读次数:
366
现象描述:
monkey --pkg-blacklist-file storage/sdcard0/blacklist.txt --ignore-security-exc
eptions --monitor-native-crashes -s 800 -v -v -v --throttle 1427 180000 >sdcard
/Monkey.log ...
分类:
移动开发 时间:
2015-01-22 21:52:34
阅读次数:
441
数据库管理类中使用到的是自定义的Context,而非app的上下文对象:
/**
* 用于支持对存储在SD卡上的数据库的访问
**/
public class DbContext extends ContextWrapper {
/**
* 构造函数
*
* @param base
* 上下文环境
*/
public DbContex...
分类:
移动开发 时间:
2015-01-22 13:18:36
阅读次数:
200
FileService.java也就是操作sdcard的工具类:?123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263...
分类:
移动开发 时间:
2015-01-21 10:11:57
阅读次数:
154
网站中有一个编辑框,要求输入上传的文件路径,如果需要自动填充,
不能 使用:
webView.loadUrl("javascript:setPhoto('"+ Uri.fromFile(new File(com.yiheng.xmb.Constant.PHOTOIMAGECROP)) + "')");
和
javascript:setPhoto('/mnt/sdcard/fffff...
分类:
移动开发 时间:
2015-01-20 15:41:00
阅读次数:
163