when I use this path
getTemporaryDirectory().path;
My app saves data in /storage/emulated/0/Android/data/com.example.app/files
How can I access any other directory such as download directory
I added
<uses-permission android:name="ANDROID.PERMISSION.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="ANDROID.PERMISSION.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="ANDROID.PERMISSION.MANAGE_EXTERNAL_STORAGE"/>
also I tried to use path as String like this
const String path = '/storage/emulated/0';
since the return of path provider is String but I get the error OS Error: Permission denied
also I can not use the function
getDownloadsDirectory()!.path
since It works only on windows platform