Back to project page alogger.
The source code is released under:
GNU General Public License
If you think the Android project alogger 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.jug6ernaut.android.utilites; // w w w. jav a2 s . c om import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import java.io.InputStream; import java.net.URL; public class ImagesUtils{ public static Drawable grabImageFromUrl(String url) throws Exception { return Drawable.createFromStream((InputStream)new URL(url).getContent(), "src"); } public static Bitmap drawableToBitmap(Drawable d){ Bitmap bitmap = ((BitmapDrawable)d).getBitmap(); return bitmap; } }