Created
October 25, 2019 08:33
-
-
Save iniyanmurugavel/d2937028086fde0a3d4f9e535e1ffe51 to your computer and use it in GitHub Desktop.
You can below condition to check whether SDCard is available or not
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://www.androiddeft.com/android-storing-and-accessing-file-from-external-storage-tutorial/ | |
| if (android.os.Environment.getExternalStorageState().equals( | |
| android.os.Environment.MEDIA_MOUNTED)) { | |
| //Check for the file | |
| File appFolder = new File(Environment.getExternalStorageDirectory() + File.separator | |
| + context.getString(R.string.app_name)); | |
| boolean exist = appFolder.exists(); | |
| } | |
| http://www.androiddeft.com/android-storing-and-accessing-file-from-external-storage-tutorial/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment