Load Images from net to Grid without third Party libraries
问题 I have a list of url of images at remote server. I need to load them into Grid View asynchronously without using any third party libraries . I have built the following task: class BitmapWorkerTask extends AsyncTask<String, Void, Bitmap> { private final WeakReference<ImageView> imageViewReference; public BitmapWorkerTask(ImageView imageView) { // Use a WeakReference to ensure the ImageView can be garbage collected imageViewReference = new WeakReference<ImageView>(imageView); } // Decode image