Are you sure the guy isn't leaving his Eris tethered to his PC and the SD card mounted? :)
Well, you could simply write the images to the app's folder in the device memory; context.getFilesDir(). You'll be dealing with much less space on most devices but if you are only writing an image or two and they are small-ish images, it might be acceptable. On Aug 11, 4:37 pm, JRich <[email protected]> wrote: > I'm not exactly sure... I'm debugging this through a user who is > emailing me since I don't have an Eris to test on. I'm sending him my > APK every time I make a change and crossing my fingers. > > Yes, it is driving me crazy because it shouldn't be device specific > unless there was something different about the Eris. The user told me > that he checked his SD card on his media drive on his PC and the file > existed. > The line I'm currently failing on is the BitmapFacotry.decodeFile so > I'm going to assume any other BitmapFactory properties would yield the > same results. > > Is there any other location that I could try saving to besides the > Environment.getExternalStorageDirectory? I could attempt to use that > directory initially and then have a backup location for failed devices > as long as it works. I'm hoping that this issue is isolated to the > Eris and older devices because that would lead me to believe that it > will slowly disappear over time if I don't fix it, but currently about > 1 in 20 users of my app have this device and complain of this error. > > On Aug 11, 3:03 pm, Robert Nekic <[email protected]> wrote: > > > > > That kind of stuff can drive you crazy. Is the Eris still on 1.6? > > > Have you tried creating a File object from that path and > > checking .exists()? Or perhaps BitmapFactory.decodeFileDescriptor? > > > On Aug 11, 2:28 pm, JRich <[email protected]> wrote: > > > > This file is getting written to the SD card... it's when I try to > > > access it I get: > > > > java.io.FileNotFoundException: /sdcard/22a1000007ddc81e.jpg > > > > that is the valid filename (using the MEID of the phone). Again, this > > > code works fine on all other devices. An uninstall and reinstall of > > > the app didn't change anything. > > > > On Aug 11, 12:25 pm, Robert Nekic <[email protected]> wrote: > > > > > What error are you seeing? My app writes to the SD card and I've > > > > tested on an Eris before and it did not present a problem. > > > > > On Aug 11, 11:59 am, JRich <[email protected]> wrote: > > > > > > 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 -- Hide quoted text - > > > > > - Show quoted text -- 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

