\/* Checks if external storage is available for read and write *\/\r\npublic boolean isExternalStorageWritable() {\r\n\u00a0 \u00a0 String state = Environment.getExternalStorageState();\r\n\u00a0 \u00a0 if (Environment.MEDIA_MOUNTED.equals(state)) {\r\n\u00a0 \u00a0 \u00a0 \u00a0 return true;\r\n\u00a0 \u00a0 }\r\n\u00a0 \u00a0 return false;\r\n}\r\n\r\n\/* Checks if external storage is available to at least read *\/\r\npublic boolean isExternalStorageReadable() {\r\n\u00a0 \u00a0 String state = Environment.getExternalStorageState();\r\n\u00a0 \u00a0 if (Environment.MEDIA_MOUNTED.equals(state) ||\r\n\u00a0 \u00a0 \u00a0 \u00a0 Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\r\n\u00a0 \u00a0 \u00a0 \u00a0 return true;\r\n\u00a0 \u00a0 }\r\n\u00a0 \u00a0 return false;\r\n}<\/pre>\n <\/p>\n
\u0425\u043e\u0442\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0435 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0449\u0435\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438, \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0437\u0434\u0435\u0441\u044c:<\/p>\n