Does anyone know how to create a folder tree in Eclipse DDMS File Explorer?

I am trying to create the package path / name / database under the sdcard folder. Has anyone got a secret?

+1
source share
3 answers

Are you using the fileobj.mkdir() method from the File class? Check if the directory exists, if it does not exist, then create it. Refer

And don't forget to write permissions for external storage, WRITE_EXTERNAL_STORAGE .

+1
source

Just select the parent folder and click small + ("New Folder"). Do this again for the next subfolder.

enter image description here

+1
source

Create SD Card

  Access to your Android SDK Tools folder and use command "mksdcard" in order to create one. By default installation on Windows, the Tools folder should be here: C:\Program Files\Android\android-sdk\tools Using following syntax to create your desired SD Card mksdcard [memory size] [output file] For example, I'd like to create a SD card with 200 MB in memory and put the files in C:\Personel\AndroidNewbie\SDCard with file named "sdcard_dev.iso", I do like this: mksdcard 256M C:\Personel\AndroidNewbie\SDCard\<span class="skimlinks-unlinked">sdcard_dev.iso</span> 

Then

Using SD Card

 You've done creating your desired SD Card, now you need it to be used by Android emulator. Open Eclipse, access to your project. On menu Run -> Run Configurations, click on Android Configuration on the left tree menu, click on tab Target on the right pane. You will see at the bottom: "Additional Emulator Commandline Options" and an Input/Edit box below: Just type your input sdcard following syntax -sdcard [sdcard location] For example, with the SD Card I've created above, I type: -sdcard C:\Personel\AndroidNewbie\SDCard\<span class="skimlinks-unlinked">sdcard_dev.iso</span> 
0
source

All Articles