Does Anyone Know How To Create A Folder Tree In The Eclipse Ddms File Explorer?
I'm trying to create the path '/package name/databases' under the sdcard folder. Anybody got the secret?
Solution 1:
Are you using fileobj.mkdir()
method from File
class? Check if the directory already exist if not exist then create it.Refer
And don't forget about writing permissions for external storage, WRITE_EXTERNAL_STORAGE
.
Solution 2:
Creating SD Card
Access to your Android SDK Tools folder and use command “mksdcard” inorderto create one.
Bydefault 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 liketo create a SD card with200 MB in memory and put the files in
C:\Personel\AndroidNewbie\SDCard with file named “sdcard_dev.iso“, I dolike 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>
Post a Comment for "Does Anyone Know How To Create A Folder Tree In The Eclipse Ddms File Explorer?"