korhan-Ö
11/4/2016 - 6:38 PM

#Image Download From Internet.java

URL url5 = null;
    try {
        url5 = new URL("http://website.com/123.jpg");
        URLConnection urlConnection5 = url5.openConnection();
        urlConnection5.setConnectTimeout(5000);
        urlConnection5.setReadTimeout(5000);
        bmp5 = BitmapFactory.decodeStream(urlConnection5.getInputStream());
        bmpDrw5 = new BitmapDrawable(bmp5);
        imageSayisi++;
    } catch (MalformedURLException e) {
        e.printStackTrace();
    } catch (IOException e) {
        e.printStackTrace();
    }