10 月 072010
 

原文: 如何在android模擬器中使用SD卡 @ 活到老,學到老 Never too old to learn :: 痞客邦 PIXNET ::

在開發過程中,順手簡單記錄一下怎麼使用SD卡

1.如何在android模擬器中掛載SD卡

啟動AVD Manager,新建一個模擬器如圖

這樣就有掛載SD卡了

test

2.如何上傳檔案到android模擬器的SD卡

首先,將掛載SD卡的模擬器Run起來(在設定模擬器時載入SD卡),接著在DOS畫面下進入android SDK下的Tools目錄

打adb push *.* /sdcard,這樣就完成了

P.S:如果先沒Run模擬器的話則會出現device not found的錯誤(如圖)

test

3.如何從模擬器SD卡下傳檔案到電腦

如同第2點一樣,只是打的指令變成adb pull *.*/1.JPG 1.JPG,這樣就會把SD卡中的1.JPG下傳到電腦的Tools目錄下

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

CAPTCHA Image
Play CAPTCHA Audio
Reload Image