Java tutorial
//package com.java2s; import android.os.Environment; public class Main { /** * Simple helper to ensure that we can write to Android filesystem. * @return */ public static boolean isExternalStorageWritable() { try { String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { return true; } return false; } catch (Exception e) { return false; } } }