Hi,

I'm having trouble setting the image on either of those
programmatically. If I specify something in the XML it'll work fine, but
I can't seem to find how to specify the image in the code itself.  This
is my code snippet:

ImageButton ib = (ImageButton) findViewById(R.id.image_button_id);
ib.setImageURI(Uri.parse((imageURL)));

Where imageURL is a string. Do I need to then set this to active
somehow? All I keep getting is a blank ImageButton.

Thanks,
Ahmad

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to