I don't believe user can change the sdcard write permissions. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together
The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 19, 9:43 am, Andrei <[email protected]> wrote: > Thanks > > I check > String s = Environment.getExternalStorageState(); > if( Environment.MEDIA_MOUNTED.equals(s) ) > > then i get path > Environment.getExternalStorageDirectory() > > I also check there is enough space > > If it does not work after this? > Can user change sdcard write permissions? > > On Aug 19, 6:38 am, Mark Murphy <[email protected]> wrote: > > > Andrei wrote: > > > Can we assume that App can write to /sdcard some file? > > > What can be reason one can not do that? > > > You would not be able to write to /sdcard if there is no card there, or > > if the card is not mounted, if the device is hooked up to a PC via USB > > and the PC has mounted the card, or if this device doesn't use /sdcard > > for the SD card location (there's a static method on > > android.os.Environment to get the path to use). > > > And, of course, the card could be full, the card could be damaged, the > > card could be replaced by a stick of gum, etc. > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > _The Busy Coders' Guide to *Advanced* Android Development_ In Print! > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

