Back to project page wpaper.
The source code is released under:
MIT License
If you think the Android project wpaper listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net; /*from w w w . ja v a2 s . c o m*/ import java.io.IOException; import java.io.InputStream; import java.net.URL; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.AsyncTask; import android.util.Log; public class DownloadImageTask extends AsyncTask<String, Void, Bitmap>{ @Override protected Bitmap doInBackground(String... urls) { // TODO Auto-generated method stub Bitmap bm = null; String urlstring = urls[0]; DownloadMethod BMDownload = new DownloadMethod(); bm = BMDownload.DownloadImage(urlstring); return bm; } }