Using api logic , you can determine if the SD card is readable or writable, but it does not tell you why it is not writable.
I want to know if the user even has an SD card, if it has just been installed.
Is it possible?
eg:
String state = Environment.getExternalStorageState(); if (state.equals(Environment.MEDIA_MOUNTED_READ_ONLY)) { }
Check for possible constants at: http://developer.android.com/reference/android/os/Environment.html#getExternalStorageState%28%29
public static boolean isSdPresent() { return android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED); }
Source: https://habr.com/ru/post/1789576/More articles:mysql - can I join multiple fields? - sqlWordpress 3.1 - TinyMCE inserts “non-standard” quotation marks - how to fix it? - quotesWhat version of the websockets protocol protocol does the Google Chrome app do - google-chromeadding jquery check dynamically - jqueryНапишите объект оболочки в Javascript - javascriptParallel.ForEach behaves as usual for everyone towards the end of the iteration - multithreadingHow to determine the minimum JRE requirement (1.5 or higher)? - javaC # Search List Box - c #C ++ expected primary expression error - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1789581/nsimageview-fails-to-setimage&usg=ALkJrhg3rafYFxihROtRzy49zUESF4egTgAll Articles