@ewpatton
trying to copy a file from the assets to the shared directory and read it from there
(on Samsung Galaxy A51 running Android 11)
a) using the latest companion app V2.60t7u
-
copying works, but reading the file not... see logcat output
Default scope of the app is Shared
the correct path to read from would be/storage/emulated/0/Download/WooHoo.txt
-
trying to copy the file again... and if the file exists, then it should be overwritten... the Exists block returns true, but the Delete method fails to delete the file in the shared directory, logcat output:
as it seems to be, the Delete method tries to delete the file in the ASD but not in the Shared directory...
then the Copy method copies the file correctly to the shared directory, however because the file already exists, file WooHoo (1).txt will be created
b) using the apk file
using the Exists method for the Shared storage results in the error message
Test project:
copyToShared.aia (2.8 KB)
Taifun