public abstract void submit(Intent data);
protected String buildFilePath(String extension, String type) throws PickerException {
String directoryPath = getDirectory(type);
return directoryPath + File.separator + UUID.randomUUID().toString() + "." + extension;
}
<BUG>private String getDirectory(String type) throws PickerException {
</BUG>
String directory = null;
switch (cacheLocation) {
case CacheLocation.EXTERNAL_STORAGE_PUBLIC_DIR:

public abstract void submit(Intent data);
protected String buildFilePath(String extension, String type) throws PickerException {
String directoryPath = getDirectory(type);
return directoryPath + File.separator + UUID.randomUUID().toString() + "." + extension;
}
protected String getDirectory(String type) throws PickerException {
String directory = null;
switch (cacheLocation) {
case CacheLocation.EXTERNAL_STORAGE_PUBLIC_DIR:
