Here you can find the source of isExternalStorageWritable()
static boolean isExternalStorageWritable()
//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; } }