Created
June 7, 2012 22:18
-
-
Save alexjlockwood/2892013 to your computer and use it in GitHub Desktop.
This file contains 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
public class BaseAlbumDirFactory extends AlbumStorageDirFactory { | |
/** | |
* For pre-Froyo devices, we must provide the name of the photo directory | |
* ourselves. We choose "/dcim/" as it is the widely considered to be the | |
* standard storage location for digital camera files. | |
*/ | |
private static final String CAMERA_DIR = "/dcim/"; | |
@Override | |
public File getAlbumStorageDir(String albumName) { | |
return new File ( | |
Environment.getExternalStorageDirectory() | |
+ CAMERA_DIR | |
+ albumName | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment