Java tutorial
//package com.java2s; import android.content.Context; public class Main { public static boolean fileExists(Context ctx, String fileName) { try { return ctx.getFileStreamPath(fileName).exists(); } catch (Exception e) { return false; } } }