Skip to content

Instantly share code, notes, and snippets.

@alexjlockwood
Created June 7, 2012 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexjlockwood/2892013 to your computer and use it in GitHub Desktop.
Save alexjlockwood/2892013 to your computer and use it in GitHub Desktop.
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