I added this in the emulator:
-sdcard /Users/Alaeddine/Documents/workspace/android_sdcard
I verified also that the /sdcard is well mounted by the emulator, not by the
the computer.
This can not be a code problem ?
By the way, i solved the problem of settings.dat path by doing this(to all
persons that needs this inf):
String mainDirPath = this.getFilesDir() + File.separator + "settings.dat";
Import myImport = new Import(this,mainDirPath);
myImport.transfer();
return true;
2011/4/5 Kostya Vasilyev <[email protected]>
> 05.04.2011 15:47, Alaeddine Ghribi пишет:
>
>
>> However, i'm facing a problem when writing the file to the SDCARD. I have
>> permission denied and "SDCARD not mounted" exception.
>> Here is the code:
>>
>> Do you have a memory card in the phone?
>
> If you do, make sure it's not mounted as a disk drive by your computer. If
> it is, use the phone's menu to disable this (this is manufacturer dependent,
> look for a status bar notification).
>
> Finally, make sure that the <permission> is outside your <application> tag,
> and directly inside <manifest>.
>
> --
> Kostya Vasilyev -- http://kmansoft.wordpress.com
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en