2009年3月8日 星期日

Android

adb.exe devices 去掛載emulator 

adb.exe shell 進到emulator底下 

Q&A








問題:為什麼無法將檔案傳到emulator的sdcard


答:


首先必須產生SDCard的image file

mksdcard <size> <file>

ex:mksdcard 1024M sdcard.iso


讓SDCard連到Android Emulator

./emulator -sdcard ~/.android/SDK-1.0/sdcard.iso


透過adb傳收檔案到emulator

adb push <local> <remote>

adb pull <remote> <local>

ex:

adb push ~/mp3/audio.mp3 /sdcard/audio.mp3


進入emulator的shell

adb shell


沒有留言:

張貼留言