Java tutorial
//package com.java2s; import java.io.File; import android.os.Environment; public class Main { private static final String APP_PATH = "ToBuyList"; private static final String ITEMS_CSVFILENAME = "items.csv"; private static final String PLACES_CSVFILENAME = "places.csv"; public static boolean canImport() { String itemsFilePath = Environment.getExternalStorageDirectory().getAbsolutePath() + '/' + APP_PATH + '/' + ITEMS_CSVFILENAME; File itemsFile = new File(itemsFilePath); String placesFilePath = Environment.getExternalStorageDirectory().getAbsolutePath() + '/' + APP_PATH + '/' + PLACES_CSVFILENAME; File placesFile = new File(placesFilePath); return (itemsFile.canRead() && placesFile.canRead()); } }