in XML, I have image button without the src
<ImageButton android:id="@+id/imagebutton1" android:layout_width="120px" android:layout_height="90px" android:scaleType="centerInside"/>
And I somewhere along.. I set either the URI or thumbnail using
((ImageButton) findViewById(R.id.imagebutton3)).setImageURI(uri);
((ImageButton) findViewById(R.id.imagebutton1)).setImageBitmap(bm);
Q1 Fixed!
Q2: When screen rotate, all my Image Buttons set with .setImageURI and .setImageBitmap is cleared. How do I prevent that?