Android SDCard Check isExternalStorageWritable()

Here you can find the source of isExternalStorageWritable()

Description

is External Storage Writable

License

Open Source License

Declaration

static boolean isExternalStorageWritable() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import android.os.Environment;

public class Main {
    static boolean isExternalStorageWritable() {
        String state = Environment.getExternalStorageState();
        if (Environment.MEDIA_MOUNTED.equals(state)) {
            return true;
        }//from  ww w . j  a va2 s.c  om
        return false;
    }
}

Related

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