Grid View + Progress Bar Android
<p>Hello,</p>

<p>how can I integrate the progress bar in a grid view that loads images from remote ...</p>

<p>I hope someone can help me!!</p>

<pre><code> public View getView(int poss, View convertView, ViewGroup parent) {

        imageView = new ImageView(context);
        imageView.setLayoutParams(new GridView.LayoutParams(value,value));
        imageView.setScaleType(ImageView.ScaleType.FIT_XY);
        imageView.setPadding(6, 8, 8, 8);

        try {
            URL aURL = new URL("http://....../"+image[poss]);
            URLConnection conn = aURL.openConnection();
            conn.connect();

            InputStream is = conn.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);

            imageView.setImageBitmap(bm);

            bis.close();
            is.close();
         } catch (IOException e) {
         }

         return imageView;
}
</code></pre>
