Back to project page Exif-Editor.
The source code is released under:
MIT License
If you think the Android project Exif-Editor listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * @user https://github.com/Egatuts//w ww .jav a 2s.c om * @repo https://github.com/Egatuts/Exif-Editor.git * @file https://github.com/Egatuts/Exif-Editor/blob/master/src/git/egatuts/android/FileUtils/EgaStorageUtils.java * @package git.egatuts.android.FileUtils * @license MIT (http://www.opensource.org/licenses/MIT) */ package git.egatuts.android.FileUtils; import java.io.File; import android.os.Environment; /** * Storage utils class with Android utilities. * @author Esa Garca * @author EgaTuts * @version 1.0.0 * @created 25/8/2014 at 16:12:58. */ public class EgaStorageUtils extends EgaFileSystem { /** * Private constructor. */ private EgaStorageUtils () {} /** * Returns default Android external storage device (usually SD-card). * @return External storage File instance. */ public File getExternalStorage () { return Environment.getExternalStorageDirectory(); } /** * Returns the specified external public directory (like DCIM, Pictures, etc.). * @param type Location as String. * @return Public external storage directory. */ public File getExternalStorage (String type) { return Environment.getExternalStoragePublicDirectory(type); } /** * Gets external storage public DCIM. * @return File instance of the Android's DCIM. */ public File getDCIM () { return this.getExternalStorage(Environment.DIRECTORY_DCIM); } /** * Gets external storage user pictures directory. * @return File instance of the Android's pictures directory. */ public File getPictures () { return this.getExternalStorage(Environment.DIRECTORY_PICTURES); } }