I am building an appwidget that is displaying images from the sdcard.
I am investigating how to get the appwidget to perform correctly on an
orientation change. Currently I am setting the image on an image
button in the remoteview from a Bitmap I created in the program.
However it seems that when the orientation changes this bitmap is
destroyed and the image won't display unless I update the remoteview
of the appwidget after the orientation change.

What should I do so that when the appwidget is remade after
orientation change the image is able to be redisplayed automatically?
The only thing I can think of is using a setImageViewURI() to point
the remoteview to the image file itself using a URI (I am having
issues getting this to work correctly thus far).

It seems that none of my code is excecuted on this orientation change
as it is only rebuilding the remoteview. Is there an accepted practice
here? Thanks,

- Ryan

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