Android SDCard Check isSdcardAvailable()

Here you can find the source of isSdcardAvailable()

Description

if sdcard available return true ,else return false

Declaration

public static boolean isSdcardAvailable() 

Method Source Code

//package com.java2s;

import android.os.Environment;

public class Main {
    /**//from w  ww  .jav  a2s.c  om
     * if sdcard available return true ,else return false
     * */
    public static boolean isSdcardAvailable() {
        String sdcardStatus = Environment.getExternalStorageState();
        return sdcardStatus.equals(Environment.MEDIA_MOUNTED) ? true
                : false;
    }
}

Related

  1. getSdCacheDir(Context context)
  2. getSdcardFilesDir(Context c)
  3. hasSdcard()
  4. isSDCardPresent()
  5. getFreeMemory(String path)
  6. sdCardIsMounted()
  7. getSdCardRootPath()
  8. sdCardIsWork()
  9. isExternalStorageAvailable()