cool looks pretty straight forward, thanks for the quick reply this will be a big help!
On May 25, 1:32 am, Nithin Varamballi <[email protected]> wrote: > hi... > > I did like this.. This may help you.... > > public class demo extends Activity { > /** Called when the activity is first created. */ > > ImageView i1; > public int position=0; > private String[] myRemoteImages = { > "http://www.cssnz.org/flower.jpg"}; > > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > button1 = (Button) findViewById(R.id.clear); > i1 =(ImageView) findViewById(R.id.i1); > load(); > > }} > > public void load() > { > > try > { > URL aURL = new URL(myRemoteImages[i]); > URLConnection con = aURL.openConnection(); > con.connect(); > InputStream is = con.getInputStream(); > /* Buffered is always good for a performance plus. */ > BufferedInputStream bis = new BufferedInputStream(is); > /* Decode url-data to a bitmap. */ > Bitmap bm = BitmapFactory.decodeStream(bis); > i1.setImageBitmap(bm)); > bis.close(); > is.close(); > /* Apply the Bitmap to the ImageView that will be > returned. */ > > } > catch (IOException e) > { > Log.e("DEBUGTAG", "Remtoe Image Exception", e); > } > > } > > Thank You > Nithin N V --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

