Android Q: file.mkdirs() returns false
问题 We have an app that uses external storage to store some temporary files: images, binary data. The code for that has been working for a few years without big changes until recently. On Android Q it doesn't work: File f = new File(Environment.getExternalStorageDirectory().toString() + File.separator + MainActivity.APP_DIR) f.mkdirs(); // do sth with f The mkdirs now returns just false . Required permission is provided in the manifest: <uses-permission android:name="android.permission.WRITE