Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.io.InputStream; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap loadBitmapFromAsset(Context context, String path) throws IOException { InputStream ims = context.getAssets().open(path); return BitmapFactory.decodeStream(ims); } }