Android Open Source - wpaper Download Image Task






From Project

Back to project page wpaper.

License

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.

Java Source Code

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;
  }
}




Java Source Code List

com.example.uniwall.BitmapOperation.java
com.example.uniwall.CoViewPagerAdapter.java
com.example.uniwall.Controller.java
com.example.uniwall.MainActivity.java
com.example.uniwall.MainApplication.java
net.DownloadImageTask.java
net.DownloadMethod.java