Yeah, I replaced my hardcoding of "sdcard/" with a variable filled by Environment.getExternalStorageDirectory and the Eris is still returning the same error of not being able to find that location. Other devices are still fine. Odd thing is, that's the same path I'm using to save the file and the file does appear on the SD card if you browse the contents.
On Aug 10, 2:52 pm, Robert Nekic <[email protected]> wrote: > Have you tried Environment.getExternalStorageDirectory()? > > http://developer.android.com/intl/fr/reference/android/os/Environment...() > > On Aug 9, 9:51 pm, Justin Rich <[email protected]> wrote: > > > > > I wrote an app that saves a camera picture to the SD card, then > > accesses the file later to display it into an ImageView. This works > > fine for all devices except the HTC Droid Eris (maybe the version Eris > > is running?): > > > ImageView img = (ImageView) findViewById(R.id.ImgProfile1); > > > BitmapFactory.Options options = new BitmapFactory.Options(); > > options.inSampleSize = 4; > > Bitmap bm = BitmapFactory.decodeFile("sdcard/" + filename, options); > > img.setImageBitmap(bm); > > > Is there a different method of referring to the sdcard location on > > 1.5, 1.6, or the Eris itself? Any help would be great.- 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

