Exemplo n.º 1
0
 private static File getStorageSpecific(final boolean secondary) {
   return EnvironmentUtils.isExternalStorageAvailable() ^ secondary
       ? getExternalStorageBase()
       : new File(getInternalStorageBase(), CACHE_DIRNAME);
 }
Exemplo n.º 2
0
 /**
  * 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();
 }