Java tutorial
//package com.java2s; import java.io.IOException; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap getBitmap(Context context, String url) { Bitmap bitmap = null; try { bitmap = BitmapFactory.decodeStream(context.getAssets().open(url)); } catch (IOException e) { e.printStackTrace(); } return bitmap; } }