Back to project page GifImageView.
The source code is released under:
MIT License
If you think the Android project GifImageView 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 com.felipecsl.gifimageview.app; /* w ww. j a v a 2 s .c o m*/ import android.os.AsyncTask; import android.util.Log; public class GifDataDownloader extends AsyncTask<String, Void, byte[]> { private static final String TAG = "GifDataDownloader"; public GifDataDownloader() { } @Override protected byte[] doInBackground(final String... params) { final String gifUrl = params[0]; if (gifUrl == null) return null; byte[] gif = null; try { gif = ByteArrayHttpClient.get(gifUrl); } catch (OutOfMemoryError e) { Log.e(TAG, "GifDecode OOM: " + gifUrl, e); } return gif; } }