Android SDCard Check isExternalStorageReadable()

Here you can find the source of isExternalStorageReadable()

Description

is External Storage Readable

Declaration

public static boolean isExternalStorageReadable() 

Method Source Code

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

public class Main {
    public static boolean isExternalStorageReadable() {
        String state = Environment.getExternalStorageState();

        return Environment.MEDIA_MOUNTED.equals(state)
                || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state);
    }/*from w ww.  j  av a  2s  .co  m*/
}

Related

  1. getRealSizeOnSdcard()
  2. hasExternalCacheDir()
  3. hasSDCard()
  4. hasSDCard()
  5. sdCardIsAvailable()
  6. isExternalStorageWritable()
  7. hasMountSDCard()
  8. getExternalStorageFreeSize()
  9. getExternalStorageTotalSize()