Good day.
I'm trying to create a folder for storing photos from the camera application. I use the code:
File checkDir = new File(Environment.getExternalStorageDirectory() + "/Albums/Application/Images"); if(checkDir.exists()) { Log.v(LOG_TAG, "directory exist"); } else { Log.v(LOG_TAG, "directory NOT exist"); checkDir.mkdirs(); Log.v(LOG_TAG, "directory create"); } But all the same, the folder is not created on ext_sd (flash drive), but on the internal memory of the phone (sdcard0).
Already wrote the absolute path, but it works out the root "/" as sdcard0, and then the hierarchy is in my way. Some nonsense comes out.
How to solve the situation?
PS: it is planned to take pictures in the application and store them for display in the same application. The desire to store on a flash drive, as it has more volume.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />? - tim_taller