HI all:
我想在emulator中加入一些圖片,用"Pictures"看。
1.Please tell me which folder in emulator I should put those images.
2.Use adb push <local> <remote> , the folder in emulator will be local or
remote? Please show me a sample.
Thank you!
birdy
HI all:
我想在emulator中加入一些圖片,用"Pictures"看。
1.Please tell me which folder in emulator I should put those images.
2.Use adb push <local> <remote> , the folder in emulator will be local or
remote? Please show me a sample.
Thank you!
birdy
2 則回應
看起來真是有用!
貼文者在開發什麼有趣的App嗎?
I found the way:
If you want put some media files (still image, video, audio) in your
"emulator". You can use the simulated SD card.
1. make a simulated SD card.
mksdcard <size> <file> , size from 1 byte to 128G and file is your
simulated SD card name. Use
"mksdcard 128M mysdcard.img" can create a 128M simulated SD card
named mysdcard.img.
2. run the emulator with -sdcard <filepath>
run "emulator -sdcard /home/birdy/mysdcard.img" , then your emulator
has a 128M SD card.
3. copy file to your SD card
"adb push /home/birdy/pictures/test.png /sdcard/test.png"
This command will copy a file from your host to emulator's SD card.
4. You must run MediaScanner in DevTools, it will help your
emulator to find the file in SD card and the AP will know there are
some files in SD card.
ps. if your emulator version is 1.5, ignore step 4 .