Android SDCard Check isExtStorageReadable()

Here you can find the source of isExtStorageReadable()

Description

is Ext Storage Readable

Declaration

public static boolean isExtStorageReadable() 

Method Source Code

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

public class Main {
    public static boolean isExtStorageReadable() {
        String state = Environment.getExternalStorageState();
        if (Environment.MEDIA_MOUNTED.equals(state)
                || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {
            return true;
        }// w ww  . ja v  a 2 s . c o m
        return false;
    }
}

Related

  1. isExternalStorageRemovable()
  2. isExternalStorageReadable()
  3. isExternalStorageWritable()
  4. isExternalStorageRemovable()
  5. hasExternalStorage()
  6. isExtStorageWritable()
  7. isExternalStorageWritable()
  8. isExternalStoragePresent()
  9. getAlbumStorageDirectory(String albumName)