Android SDCard Check hasSDCard()

Here you can find the source of hasSDCard()

Description

has SD Card

Declaration

public static boolean hasSDCard() 

Method Source Code

//package com.java2s;

import android.os.Environment;

public class Main {
    public static boolean hasSDCard() {
        String status = Environment.getExternalStorageState();
        if (!status.equals(Environment.MEDIA_MOUNTED)) {
            return false;
        }/*from   w  ww  . j a  va 2  s  .  c o  m*/
        return true;
    }
}

Related

  1. enoughSpaceOnPhone(long updateSize)
  2. enoughSpaceOnSdCard(long updateSize)
  3. getRealSizeOnPhone()
  4. getRealSizeOnSdcard()
  5. hasExternalCacheDir()
  6. hasSDCard()
  7. sdCardIsAvailable()
  8. isExternalStorageReadable()
  9. isExternalStorageWritable()