For anyone reading this thread with the same problem... the cause is
that the HTC Eris and Hero do not utilize the
putExtra(android.provider.MediaStore.EXTRA_OUTPUT, Uri file) due to a
bug.  Therefore, they do not save an ACTION_IMAGE_CAPTURE to that
specified location.  You will have to grab the Uri from the
data.getData() call and find the file using the Uri.

On Aug 12, 8:54 am, JRich <[email protected]> wrote:
> I tried adding the permission, but it still does the same thing.
> There has never been a problem writing the file.  The file is always
> there, it's more of an issue of pulling that file path back down.  It
> says it doesn't exist when it does.  Seems like there is an issue in
> that device recognizing the file path as the same path that it used to
> write the file.  I'm stumped.
>
> Also, this has occurred on more than 100 devices who've downloaded my
> app and 99% of them are HTC Droid Eris.
>
> On Aug 11, 10:05 pm, john brown <[email protected]> wrote:
>
>
>
> > I had a post on this subject recently. The solution suggested fixed my
> > problem. I was getting the exact same error message. I do not know for
> > sure if our problems are the same but I would sure try the solution
> > they gave me. Search for > " on sdcard, File.canRead() = true,
> > File.canWrite() = false "
>
> > The solution was:
> > "
> > Did you add this to your application's manifest?
> > <uses-permission
> > android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
> > -- Kostya
> > "
> > HTH, John Brown
>
> > On Aug 9, 7: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 -

-- 
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

Reply via email to