Portable Electronics Ltd | Official Support & Discussion Forum
   Home   Help Search Login Register  
March 10, 2010, 02:19:24 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
News: If you have logged into our main site, you will automatically login to our forum. If not, try to use the same username and password to login manually.
 
Pages: [1]
  Print  
Author Topic: Creating a virtual SD card and loading files into SD card  (Read 887 times)
Eric
Administrator
Sr. Member
*****

Karma: +1/-0
Offline Offline

Posts: 389



View Profile WWW
« on: August 19, 2008, 02:25:27 AM »

After you have downloaded and installed the SDK,

Then, open Command Prompt,
enter the directory
e.g.
android-sdk_m5-rc15_windows\tools\
android-sdk-windows-0.9_beta\tools\

Create the virtual SD card with this command
mksdcard [-l label] <size>[K|M] <file>

e.g.
mksdcard 1024M c:\sdcard.img

To add files inside the virtual SD card,
use the adb command, adb push <file> <destination>
e.g.
adb push c:\music\Android.mp3 c:\sdcard.img

Under Command Prompt, use this command to start the emulator
emulator -sdcard <file>

Once emulator is running, you can also add files using the Dalvik Debug Monitor Service (ddms) tool,
run \tools\ddms.bat
select Device > File Explorer -> SD card
Add files to the SD card by clicking the Push File from button in the toolbar
« Last Edit: August 19, 2008, 02:46:15 AM by Eric » Logged

Eric Wong
Managing Director
Portable Electronics Ltd
Please check out the X8 FAQ, PMP FAQ and search the forum before asking questions.
shfy
Administrator
Newbie
*****

Karma: +0/-0
Offline Offline

Posts: 2


Life is wonderful only because of you


View Profile WWW
« Reply #1 on: August 19, 2008, 07:19:04 AM »

After you have downloaded and installed the SDK,

Then, open Command Prompt,
enter the directory
e.g.
android-sdk_m5-rc15_windows\tools\
android-sdk-windows-0.9_beta\tools\

Create the virtual SD card with this command
mksdcard [-l label] <size>[K|M] <file>

e.g.
mksdcard 1024M c:\sdcard.img

To add files inside the virtual SD card,
use the adb command, adb push <file> <destination>
e.g.
adb push c:\music\Android.mp3 c:\sdcard.img

Under Command Prompt, use this command to start the emulator
emulator -sdcard <file>

Once emulator is running, you can also add files using the Dalvik Debug Monitor Service (ddms) tool,
run \tools\ddms.bat
select Device > File Explorer -> SD card
Add files to the SD card by clicking the Push File from button in the toolbar
  Thanks!
Logged

Manager (China)
Portable Electronics Ltd
Please check out the X8 FAQ and PMP FAQ page before asking questions.
Pages: [1]
  Print  
 
Jump to:  

Theme by m3talc0re. Powered by SMF 1.1.11 | SMF © 2006, Simple Machines LLC MySQL | PHP | XHTML | CSS
Page created in 0.055 seconds with 20 queries.