that's it. Android apps can't write to /sdcard unless that preference is off.

and to avoid corruption from the other side, always cleanly unmount 
the SD card on your Mac/PC before unchecking that option.



>You've mentioned turning off "act as USB disk" on G1. Did you mean
>"use for USB storage" under Settings->SD card or something else?
>
>
>On Oct 27, 6:27 pm, Jason Proctor <[EMAIL PROTECTED]> wrote:
>>  writing to /sdcardon myG1failed until i turned off "act as USB
>>  disk" in theG1preferences.
>>
>>  >On Oct 25, 12:03 pm, blindfold <[EMAIL PROTECTED]> wrote:
>>  >>  Have others encountered problems writing to theSDcardof aG1?
>>  >I've tried a small application that opens and writes text file into sd
>>  >card (using plain Java File & FileWriter) and it works on emulator but
>>  >fails onG1probably due to permission problem (query file.canWrite()
>>  >returns false). And how about you? Which API do you use towritedata
>>  >on SD?
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to