If I save a filename without a slash (file1) what should the file path be when using ShareFile? Delete and ReadFrom both work fine with just the file name, but not ShareFile.
The ExternalStorage block below works fine, but what should X be in the PrivateAppStorage block? I've tried everything I can think of but without success. (I am using Moto G5 with Android 8.1.0 and a Samsung A50 with Android 10 and legacy mode switched on.)
Many thanks for your help. I'll look at the detailed links later, but I can't get your suggested path to work on either phone (Android 8.10 and 10). I've tried substituting the following for X in the second block above:
(The AppName on the Designer screen is FE so the apk file is FE.apk. In each case I get a file not found error.)
I've now downloaded Anke's extension to get the ASD for my app (called FE2). This is /storage/emulated/0/Android/data/appinventor.ai_mickofemsworth.FE2/files . I then tried the path /storage/emulated/0/Android/data/appinventor.ai_mickofemsworth.FE2/files/filename in the Sharefile block to share a file I saved as filename. Unfortunately I got the same file not found error. I also tried saving the file using the long path which resulted in a file could not be created error. I'm probably doing something stupid but I haven't a clue what. Any suggestions??
you are storing the file to the private app directory but you are trying to share it from the application specific directory, which is different
you might want to save the file to the ASD, you can use a method rom @Anke's extension for this...
Thanks for this Taifun. I have tried saving the file to the path given by Anke's ASD extension but this doesn't work. You say I can use a method from @Anke's extension for this, but I can't find it - please can you tell me where it is?