Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.FileInputStream; import java.io.FileNotFoundException; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap getLoacalBitmap(String url) { try { if (null == url) { return null; } else { FileInputStream fis = new FileInputStream(url); return BitmapFactory.decodeStream(fis); } } catch (FileNotFoundException e) { e.printStackTrace(); return null; } } }