Hi Experts,

i am trying to set an image which is working fine but when i change
mode to/from portrait, it crashes at the following line

imageicon.setImageURI(image_uri);




here is my imageicon in xml

<ImageView
                        android:id="@+id/imageicon"

            android:src="@drawable/add_picture"
            android:adjustViewBounds="true"
            android:maxWidth="291dip"
            android:maxHeight="96dip"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            />

any solution?

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