Android SDCard Check isExtStorageWritable()

Here you can find the source of isExtStorageWritable()

Description

is Ext Storage Writable

Declaration

public static boolean isExtStorageWritable() 

Method Source Code

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

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

Related

  1. isExternalStorageReadable()
  2. isExternalStorageWritable()
  3. isExternalStorageRemovable()
  4. hasExternalStorage()
  5. isExtStorageReadable()
  6. isExternalStorageWritable()
  7. isExternalStoragePresent()
  8. getAlbumStorageDirectory(String albumName)
  9. getExtStoragePubDir(String dirName, String dirType)