Java tutorial
//package com.java2s; //License from project: LGPL import android.os.Environment; public class Main { private static boolean isAvailableFileSystem(String fileSystemName) { final String[] unAvailableFileSystemList = { "/dev", "/mnt/asec", "/mnt/obb", "/system", "/data", "/cache", "/efs", "/firmware" }; for (String name : unAvailableFileSystemList) { if (fileSystemName.contains(name) == true) { return false; } } if (Environment.getExternalStorageDirectory().getAbsolutePath().equals(fileSystemName) == true) { return false; } return true; } }