Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap getBitmap(String path) { BitmapFactory.Options options = new BitmapFactory.Options(); options.inSampleSize = 8; return BitmapFactory.decodeFile(path, options); } }