List of usage examples for android.os Environment MEDIA_MOUNTED_READ_ONLY
String MEDIA_MOUNTED_READ_ONLY
To view the source code for android.os Environment MEDIA_MOUNTED_READ_ONLY.
Click Source Link
From source file:Main.java
public static boolean isSDCardWritable() { if (isSDCardExist()) { return !Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED_READ_ONLY); }/*from w ww . j a v a 2 s. com*/ return false; }
From source file:Main.java
public static boolean isExternalStorageReadOnly() { String extStorageState = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(extStorageState)) { return true; }//from w ww.j ava 2s. co m return false; }
From source file:Main.java
public static boolean isSDReadable() { String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state) || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) { return true; }// w ww . j a va2 s .c o m return false; }
From source file:Main.java
public static boolean hasExternalStorage() { String state = Environment.getExternalStorageState(); return Environment.MEDIA_MOUNTED.equals(state) || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state); }
From source file:Main.java
private static boolean isExternalStorageReadable() { String state = Environment.getExternalStorageState(); return Environment.MEDIA_MOUNTED.equals(state) || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state); }
From source file:Main.java
public static boolean isExternalStorageReadable() { String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state) || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) { return true; }//www.j a va2 s. co m return false; }
From source file:Main.java
private static boolean isExternalStorageReadable() { final String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state) || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) { return true; }//from w w w.j a va 2 s. c o m return false; }
From source file:Main.java
public static boolean sdcardMounted() { final String state = Environment.getExternalStorageState(); if (state.equals(Environment.MEDIA_MOUNTED) && !state.equals(Environment.MEDIA_MOUNTED_READ_ONLY)) { return true; }//from w ww. j av a 2 s .c om return false; }
From source file:Main.java
public static boolean sdCardMounted() { final String state = Environment.getExternalStorageState(); if (state.equals(Environment.MEDIA_MOUNTED) && !state.equals(Environment.MEDIA_MOUNTED_READ_ONLY)) { return true; }/*from w w w .j av a 2s .co m*/ return false; }
From source file:Main.java
public static boolean isExternalStorageReadable() { final String state = Environment.getExternalStorageState(); return state.equals(Environment.MEDIA_MOUNTED) || state.equals(Environment.MEDIA_MOUNTED_READ_ONLY); }