As Kostya said, are you sure that your app/dir directory doesnt already exist? Because if so you would expect a value of false to be returned. Can you first check to see if the directory x exists before running mkdirs(x)?
On Mar 15, 5:06 am, GJTorikian <[email protected]> wrote: > I wrote a reply to this, but I guess it was censored. I > was complaining about manufacturer fragmentation, again. > > If I have a directory like this: mnt/sdcard/app/dir > > mkdirs("app/dir") fails; mkdirs("app") followed by mkdirs("app/dir") works. > This is extremely unusual. > > > > On Saturday, March 10, 2012 10:53:37 PM UTC+1, Kostya Vasilyev wrote: > > > I just tried this on my Galaxy Nexus with official 4.0.2, and it > > definitely works, with and without the training slash. > > > mkdirs returns false if the directory already exists - are you sure yours > > don't? > > > Also, does your app have the permission to write to external storage? > > IIRC, some really older platform versions used to enable this permission if > > it wasn't declared. > > > -- K > > > On 03/10/2012 11:38 PM, GJTorikian wrote: > > > It seems that that's entirely the problem. When I try to perform a > > mkdirs() operation, I get a return of false. > > > So, for the structure of: /mnt/sdcard/myapp/ > > > new File("/mnt/sdcard/myapp/").mkdirs() fails--but again, only for this > > device, it seems.- Hide quoted text - > > - Show quoted text - -- 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

