Java tutorial
//package com.java2s; import android.util.Log; import java.io.File; public class Main { public static File loadFromFile(String filename) { try { File f = new File(filename); if (!f.exists()) { return null; } // Bitmap tmp = BitmapFactory.decodeFile(filename); return f; } catch (Exception e) { Log.d("Exception", e.getMessage()); return null; } } }