I have created a folder in the internal storage for storing files. But the issue is the folder is not created in some Android devices. The folder is created in lollipop devices but not in oreo and nougat.
- What is the problem?
- Is there any additional permission is needed for higher level API?
The code for creating a folder in internal storage
File f1 = new File(Environment.getExternalStorageDirectory(), Constants.STORED_FOLDER);
if (!f1.exists()) {
f1.mkdirs();
}
Log.e("check_path", "" + f1.getAbsolutePath());
Also, I have another query on how to make the folder visible in the gallery.
It is not visible in the gallery? How to solve this issue?