Yes, this is a nice idea and it seems to work.
"Also save" ... what ?
Yes, this is a nice idea and it seems to work.
"Also save" ... what ?
which file picker extension are you using? any link?
as we can see, there are a lot of spelling errors and ignoring the naming conventions...
it is hard to understand, what you are trying to say... you might want to elaborate...
Taifun
How to ask permssions?
I tried this:
it's working in compaion, but not in apk.
In apk it said the "permission ... has been denied. Please enable it in the Setting app", but in Setting there is no such WriteExternalStorage permission.
I also tried:
But the app denied the permission automaticly.
please help.
It basically seems to work. I received a test APK (from Krish Jha - Niotron team) that copies a text file from the assets to /Download or /Documents (of course without WRITE
permission, which is no longer available on Android 11).
/Download
and/Documents
are the ONLY two folders where this works. (even /Downloads
does NOT work!)
Tested on a Pixel 2XL (Android 11).
I don't think this has anything to do with SAF.
Did you test with the APK?
If so, remove this file /Documents/test1.csv
from your device and try again to save this file:
It will no longer work ...
Yes, all work in Documents. button5
APK removed. This community does not allow posting of apk files in our threads.
Here is a test app that saves a text file in the → /Download
and → /Documents
folders (without WRITE
permission, as this is no longer available on Android 11).
Note: The file names have to be changed with each button click, otherwise it will only work as long as no file is manually deleted from /Download
or /Documents
.
Steps to test the app (especially on Android 10 and 11):
CheckBox
and try again ... it should work again ...This behavior is really strange.
Especially because I don't use any method regarding "shared storage" (FileScope.Shared
).
Maybe @ewpatton can say something about it.
No, it doesn't work (Pixel 2XL, Android 11).
Now uninstall the app and try again.
It shouldn't work until you check the CheckBox.
On Android 10+ you can no longer ask for WRITE
permission, because this is no longer availably.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" />
Need this permission, how solid file manager
android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
Thanks Anke,
I noticed that and tried to ask read permission, but this only work when defaultFileScope set to legacy.
Where is the documents for file scope block?
Worked add manifest)
Please, do NOT post apk files in the community at all.
Yes, I mentioned that several times, e.g. here.
Whenever you need READ
/ WRITE
permissions for devices with Android 4.4 up (API 19+ / KitKat) you must set defaultFileScope = Legacy
to get READ
/ WRITE
permissions declared in the Manifest.
The same with Niotron.
But on Android 10 there is no problem with deleting files from /Download
and /Documents
or after uninstalling / reinstalling the app. These issues are only present on Android 11.