Java tutorial
//package com.java2s; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { /** * Call for loading image from application resources * * @param res * application resources object * @param id * resource id * @return requested Bitmap */ public static Bitmap getBitmapImageById(Resources res, int id) { return BitmapFactory.decodeResource(res, id); } }