Android SDCard Check isExternalStorageWritable()

Here you can find the source of isExternalStorageWritable()


is External Storage Writable


public static boolean isExternalStorageWritable() 

Method Source Code

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

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

        return Environment.MEDIA_MOUNTED.equals(state);
    }//www .ja v a2s  .  c  o  m


  1. hasExternalCacheDir()
  2. hasSDCard()
  3. hasSDCard()
  4. sdCardIsAvailable()
  5. isExternalStorageReadable()
  6. hasMountSDCard()
  7. getExternalStorageFreeSize()
  8. getExternalStorageTotalSize()
  9. generateLogOnSD(String sBody, String fileName, String folderName)