Android SDCard Check hasSDCard()

Here you can find the source of hasSDCard()


has SD Card


public static boolean hasSDCard() 

Method Source Code

//package com.java2s;

import android.os.Environment;

public class Main {
    public static boolean hasSDCard() {
        return Environment.MEDIA_MOUNTED.equals(Environment
    }//  w w w . j a va2s  .c om


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