Created
July 24, 2016 08:17
-
-
Save shakil807g/362d8d153e7bdf55f386c6beb8d4e0c9 to your computer and use it in GitHub Desktop.
MediaDirectory
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
void fixMediaDir() { | |
File sdcard = Environment.getExternalStorageDirectory(); | |
if (sdcard != null) { | |
File mediaDir = new File(sdcard, "DCIM/Camera"); | |
if (!mediaDir.exists()) { | |
mediaDir.mkdirs(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment