Hello,

This is really baffling. In an AppWidgetProvider I am trying to
setImageViewUri using this Uri: Uri.fromFile(getFileStreamPath(name))

I know the file exists in internal storage because I've tried
File.exists(), and I also successfully tried:

Bitmap b =
BitmapFactory.decodeFile(getFileStreamPath(path).getAbsolutePath());
views.setImageViewBitmap(id, b);

I need to do this with 3 images of varying size so converting to a
Bitmap is out of the question (I get a Failed Binder Transaction
regularly).

Why is it that I can use the same getFileStreamPath to create a bitmap
but cannot create the Uri to use in setImageViewUri? (this is all in
an AppWidgetProvider)

Any help would be greatly appreciated!

Matt.

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

Reply via email to