My use case is this: a user looks up some information about a book. The book's cover is fetched from The Internet. If the user wants to save the book cover, the image is stored in the external storage directory.
The storage code is simply this: new File(Environment.getExternalStorageDirectory(), file); where "file" is just the name of the JPEG file of the image, prepended with my app. So, in theory, this should just be /mnt/sdcard/myapp/someBookCover.jpg for the Galaxy Nexus. (Obviously, mnt/sdcard varies, and might just be /sdcard-ext, etc). Now, when I perform a file.exists() operation to make sure that that file exists, I always get a "false" on ICS devices, and the cover does not load. I am not sure why this is happening. I had a user send me some logging information, and everything seems to check out correctly: I/IOUtilities(15437): ExternalStorageDirectory: /mnt/sdcard I/IOUtilities(15437): ExternalStorageEmulation: true I/IOUtilities(15437): ExternalStorageRemovable: false I/IOUtilities(15437): CacheDir: /data/data/com.miadzin.shelves/cache What am I doing wrong here? On Saturday, March 10, 2012 12:29:26 AM UTC-6, Zsolt Vasvari wrote: > > As far as I can tell, no issues. At least nobody complained. > > On Saturday, March 10, 2012 9:42:16 AM UTC+8, GJTorikian wrote: >> >> Over various Android updates and devices, I've been able to use >> getExternalStorageDirectory() in my code without any problems. >> >> However, I'm suddenly getting a lot of bug reports from ICS users on the >> Galaxy Nexus complaining that the way they interact with my app is not >> working. Specifically, it's in all the areas that >> use getExternalStorageDirectory(). >> >> Can someone with a Galaxy Nexus device confirm this? I realize that the >> Nexus does not have an SD card, the "external" is really internal, >> e.t.c.... but users are simply not able to use the app properly. >> >> >> Thanks in advance. >> > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en