Android SDCard Check hasSdcard()

Here you can find the source of hasSdcard()

Description

has Sdcard

Declaration

private static boolean hasSdcard() 

Method Source Code

//package com.java2s;
import android.os.Environment;

public class Main {
    private static boolean hasSdcard() {
        String status = Environment.getExternalStorageState();
        if (status.equals(Environment.MEDIA_MOUNTED))
            return true;
        else/*from   w ww.  j  a  v a2s . c  o  m*/
            return false;
    }
}

Related

  1. generateLogOnSD(String sBody, String fileName, String folderName)
  2. getDataFilesDir(Context c)
  3. getSDPath()
  4. getSdCacheDir(Context context)
  5. getSdcardFilesDir(Context c)
  6. isSDCardPresent()
  7. getFreeMemory(String path)
  8. isSdcardAvailable()
  9. sdCardIsMounted()