I know its a well known error but i dont really understand how i can solve my problem. Sorry for all discomfort! I wanna make my App work on Android 11+ (i prefer solutions where i dont have to differ the different Android versions if thats possible )
Till now(Andoid 7.0):
I use the file-component to append an csv.
So I can access the csv on my laptop and can manipulate(adding; deleting, modifying) the data stored easily and can afterwards analyze them with Excel.
How can i make it work on all Android > 7.0?
I have heard, that taifun could help me but i doesnt know how
The only thing i have read, is, that i should use the ASD and export it to Shared Folder(with taifun?) but that wouldnt help me i guess, because i cannot overwrite and changes made on laptop wont change the "real" csv in the ASD...
Thank you for your help and sorry for my bad english, i am german^^
but couldnt find useful information even with keyword search "URI" and "write document"
I know that I need the URI of my document which is safed in Documents. But i wasnt able to find information how i can build the URI when i just know the path. Maybe i am totally wrong, because its my first time with URI so i didnt understand the informations given in the links above.
Of course, this is possible even on Android 11+, but you have to use a special file manager like Total Commmander to see it on the device and on the computer you can see it via USB connection.
If that weren't possible, nobody would be able to clear the Companion assets / ASD on Android 11+ without uninstalling the companion app or deleting storage & cache in the app settings.
so should i use taifunfile-component to copy my file from ASD to privDir; using file-component to append the .csv; copying from privDir back to ASD with taifun-component? Because editing .csv with file-component in ASD doesnt seem to work
SAF is not required to write to or read from the ASD. So use the File component.
SAF is required if you want to write to or read non-media files from non-shared folders on Android 11+. In addition, SAF is required if non-media files that were NOT created by the app itself are to be read from shared folders.
Read all comments in the topic "SAF extension". There are numerous block examples on how to use the blocks correctly.