Sorry to post this again but my app cannot save or read data from a file anymore. it worked in android 8.
i tried andreas' saveToShared.aia but get the error.
"runtime error
Error from companion: the operation DefaultFileScope cannot accept the arguments: , ["Legacy"]
"
i did not change any block.
i still use the taifun File extension from 2019 because i do not know how to upgrade teh extension. when i try import the newer one it says something like "duplicate...."
any help is highly appreciated
Non-media file that are saved in one of the Shared folders (/Documents or /Download) MUST be created by the app itself. The APK and the Companion app are different apps. So the text file must be removed before testing (with Companion or APK beforehand).
And a final note, which I have made countless times in other places: The File component incorrectly requests storage permissions even for the Shared folders.
first let me apologize for mixing up your name Anke, will not happen again.
thank you all for the quick input you provided.
now i am using taifunFile extension from 2019 and would have thought that the newer version would handle the android11 situation transparent to the user but maybe not. Again i also cannot figure out how to upgrade to the latest TaifunFile extension, would it help?
Anke while typing all this it just dawned to me that actually said COMPILE the app. i missed this because it never was an issue in android8.
good news is that the compiled app WORKS
so does that now mean during development phase i cannot test file operations as was possible in android 8? that would be a bummer.
Patel i will also look into your suggestion - thanks.
good news is with your help i can continue with my work -
thanks a lot
erhard
hm this is super frustrating please help. based on your suggestions i added the following to my first screen
and i get the error 908 ....write external storage...
i did give permission in the settings screen of the app but error still shows. as much as i like appinventor but this is really very difficult. Taifun in another thread also mentions the issue with multiple screens, which i have. i never had any issues in android 8.
i am not sure what else to try.
sorry but i did try several hours before i posting, but thanks for the hint.
anyway i found that hint to set the first screen filescope to LEGACY - i have not seen this mentioned anywhere before.
and i found the file in INTERNAL memory.
so even i give permission to EXTERNAL it is now in internal memory. simply beyond my mental capacity now