Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap getBitmap(String aPath) { Bitmap bmp = null; try { bmp = BitmapFactory.decodeFile(aPath); } catch (Exception e) { e.printStackTrace(); } return bmp; } }