Hello, your library is very nice. There is a issue when I would like to save image to app folder. I change method getDirectory in FileUtils like this
public static String getDirectory(Context context, String foldername) {
File storageDir = null;
if (Environment.MEDIA_MOUNTED.equals(Environment
.getExternalStorageState())) {
storageDir = context
.getExternalFilesDir(Environment.DIRECTORY_PICTURES);
if (storageDir != null) {
if (!storageDir.mkdirs()) {
if (!storageDir.exists()) {
Log.e("Pictures", "failed to create directory");
return null;
}
}
}
} else {
Log.v(context.getString(R.string.app_name),
"External storage is not mounted READ/WRITE.");
}
return storageDir.getAbsolutePath();
}
It is not working. Can you help me ?
Hello, your library is very nice. There is a issue when I would like to save image to app folder. I change method getDirectory in FileUtils like this public static String getDirectory(Context context, String foldername) { File storageDir = null; if (Environment.MEDIA_MOUNTED.equals(Environment .getExternalStorageState())) { storageDir = context .getExternalFilesDir(Environment.DIRECTORY_PICTURES); if (storageDir != null) { if (!storageDir.mkdirs()) { if (!storageDir.exists()) { Log.e("Pictures", "failed to create directory"); return null; } } } } else { Log.v(context.getString(R.string.app_name), "External storage is not mounted READ/WRITE."); } return storageDir.getAbsolutePath(); } It is not working. Can you help me ?