private static File getStorageSpecific(final boolean secondary) { return EnvironmentUtils.isExternalStorageAvailable() ^ secondary ? getExternalStorageBase() : new File(getInternalStorageBase(), CACHE_DIRNAME); }
/** * Check if an external media (SD card) is available for use. * * @return true if the external media is properly mounted */ public static boolean isExternalStorageAvailable() { return EnvironmentUtils.isExternalStorageAvailable(); }