创建一个有SD 卡的模拟器( 粗体文字是命令 )
我设置了相关的环境变量
root@May:~/桌面# android create avd -n three -t 3 -c 128M
Android 1.6 is a basic Android platform.
Do you wish to create a custom hardware profile [no]
Created AVD 'three' based on Android 1.6,
with the following hardware config:
hw.lcd.density=240
root@May:~/桌面# android list avd
Available Android Virtual Devices:
Name: three
Path: /root/.android/avd/three.avd
Target: Android 1.6 (API level 4)
Skin: WVGA800
Sdcard: 128M
然后往模拟器中复制一个3gp的文件
root@May:~/桌面# adb push /root/桌面/test.3gp /sdcard/
1355 KB/s (504030 bytes in 0.363s)
root@May:~/桌面# adb shell
# ls
sqlite_stmt_journals
cache
sdcard
etc
system
sys
sbin
proc
init.rc
init.goldfish.rc
init
default.prop
data
root
dev
# cd sdcard
# ls
LOST.DIR
test.3gp
# exit
file:///sdcard/test.3gp 替换成 http://somewhere.com/test.mp4
就OK了。