Just a guess here...is it possible that maybe you are not calling mkdir/s() before saving the file on sd? And so your folder "myapp" doesn't exist. (although I guess that's not the case since you are having issues only with ICS).
Anyway, if you need me to test something on the Galaxy Nexus just let me know. Cheers, Yuvi On Sat, Mar 10, 2012 at 9:12 AM, GJTorikian <[email protected]> wrote: > 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 [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 > -- YuviDroid Check out Launch-X <http://android.yuvalsharon.net/launchx.php> (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- 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

