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 getImageFromAsset(Context ctx, String name) { try { return BitmapFactory.decodeStream(ctx.getResources().getAssets().open(name)); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; } }