打开DDMS
Eclipse -> Window -> open perspective ->DDMS
if want push file to Emulator then you can use
DDMS->select the emulator ->then open file explorer ->select SDcard(mnt/sdcard)->
then click push button on right top to browse the file.
[2013-04-24 16:25:28 - ddms] transfer error: Read-only file system
[2013-04-24 16:25:28] Failed to push selection: Read-only file system
just go to
C:\Documents and Settings\<adminstrator>\.android\avd
take 'properties' of your avd folder(there is a folder for each of the avds)..uncheck 'Read only'->ok
D:\adt-bundle-windows-x86-20130219\sdk\platform-tools>adb devices
List of devices attached
emulator-5554 device
查看sdcard目录权限
D:\adt-bundle-windows-x86-20130219\sdk\platform-tools>adb shell
root@android:/ # cd /sdcard/
cd /sdcard/
root@android:/sdcard # ls -al
ls -al
d--------- root root 2013-04-24 09:08 .android_secure
d---rwxr-x system sdcard_rw 2013-04-24 08:59 LOST.DIR
----rwxr-x system sdcard_rw 467531 2013-02-12 23:34 foo.txt
d---rwxr-x system sdcard_rw 2013-04-24 08:59 myfolder
root@android:/sdcard # mkdir myfolder
mkdir myfolder
mkdir failed for myfolder, File exists
1|root@android:/sdcard # exit
exit
向emulator sdcard中push文件
D:\adt-bundle-windows-x86-20130219\sdk\platform-tools>adb push myapp.apk /sdcard/
myfolder/myapp.apk
195 KB/s (1654639 bytes in 8.278s)
D:\adt-bundle-windows-x86-20130219\sdk\platform-tools>
安装emulator sdcard卡下的apk文件
D:\adt-bundle-windows-x86-20130219\sdk\platform-tools>adb shell
root@android:/ # adb install /sdcard/myfolder/myapp.apk
adb install /sdcard/myfolder/myapp.apk
1492 KB/s (1654639 bytes in 1.082s)
pkg: /data/local/tmp/myapp.apk
Success
root@android:/ #
- 浏览: 33992 次
- 性别:
- 来自: 上海
最近访客 更多访客>>
最新评论
-
jialisoft126:
站长真不容易的
成为一名知名站长需要做好哪些? -
thrillerzw:
工作4年,感觉啥也没留下,做个站长,也是一种积累啊。。挺好,我 ...
成为一名知名站长需要做好哪些?
相关推荐
android 无sdcard 下载安装 apk 多线程 断点 自动安装apk
Android模拟器sdcard操作 ,帮助我们更好学Android系统开发
android 默认安装apk 到sdcard tf 卡
在windows xp下创建模拟器sdcard极其加载,还有一个常见问题的解决办法,自己的经验及网上查找的。
如何在 android 模拟器中使用SDCard
sdcard的创建,网上搜索得到的,很详细,很有用,这是我的综合总结得到的
使用模拟器开发过程中碰到sd卡相关问题及其解决
NULL 博文链接:https://iaio.iteye.com/blog/1402225
android调试sdcard文件加载,解决不能传入文件问题: 只需要执行4个命令,win和mac下都好使。
Android模拟器使用SD卡(转载http://blog.sina.com.cn/s/blog_4de067e40100nwd1.html)
安卓模拟器的sdcard.img文件打开修改工具,可以很方便的给安卓模拟机的sd-card内存卡添加文件,直接可以在安卓模拟机的内存卡里打开添加的文件。同样可以打开其他的img文件
具体介绍了android中sdcard的读写操作步骤和具体的实现过程,介绍了sdcard的应用等
// context:上下文 // dialogid:对话框ID // title:对话框标题 // callback:一个传递Bundle参数的回调接口 // suffix:需要选择的文件后缀,比如需要选择wav、mp3文件的时候设置为".wav;.mp3;",注意最后...
android 写入SDcard 文件,通俗易懂,适合初学者
可以解析本地图片,并显示在屏幕上,很实用
读取Sdcard中的图片,并奖其用Gallery显示出来,当点击Gallery中的某一图片时,会在屏幕中显示该图片.
Android获取sdcard信息 文档
获取外置SDcard路径,进行创建,写入,读取,删除操作。
Android模拟器SD Card映像文件使用方法
代码如下:// 读取sdcard文件private void sdcardRead(){String fileName = “/sdcard/my_sdcard.txt”;// assets下文件//String fileName = “/sdcard/test/my_sdcard_test.txt”;// sdcard下子目录文件String ret =...