Having the need to delete a folder, that was loaded to an Android standalone using the setting pane, I worked on the scripts of this lesson:
https://lessons.livecode.com/m/4071/l/1 ... ers-part-2
I came up with the attached stack, that works fine on OSX Sonoma with LC10DP1.
I think that something like this should appear in a LC lesson for mobile devices, particularly for whoever works with a Launcher, to build their standalone.
In my case, the Launcher App should be able to update from the cloud the real stack inside which will be in the loaded folder, together with other stuff.
When I tested to an Android 13 device, I got mixed results. So much that it is difficult to say what has been deleted and what is not.
I hope that someone can spread a light on this problem (next I will have to test it on iOS).
Receipt:
1 inside the main folder there is a "Storage" folder, where, for commodity, I keep the folder "Referi_0" used for testing
2 The "Referi_0" folder is light enough. I suggest to start with this one
3 make a copy of "Referi_0" to the same level of the DeleteFolder stack
4 Open the stack and be sure to update, in the standlone settings copy pane, the name of the folder to be loaded inside the standalone
5 Test the stack on OSX or Windows: your "Referi_0 folder should get deleted
6 Re-do step 3 to 4 and, this time, try to install on an Android device
You will see that the list of what has been deleted and what is not gets rather confused. I could not make sense of it.
If you feel like, test it on iOS and let me know.
https://lessons.livecode.com/m/4071/l/1 ... ers-part-2
I came up with the attached stack, that works fine on OSX Sonoma with LC10DP1.
I think that something like this should appear in a LC lesson for mobile devices, particularly for whoever works with a Launcher, to build their standalone.
In my case, the Launcher App should be able to update from the cloud the real stack inside which will be in the loaded folder, together with other stuff.
When I tested to an Android 13 device, I got mixed results. So much that it is difficult to say what has been deleted and what is not.
I hope that someone can spread a light on this problem (next I will have to test it on iOS).
Receipt:
1 inside the main folder there is a "Storage" folder, where, for commodity, I keep the folder "Referi_0" used for testing
2 The "Referi_0" folder is light enough. I suggest to start with this one
3 make a copy of "Referi_0" to the same level of the DeleteFolder stack
4 Open the stack and be sure to update, in the standlone settings copy pane, the name of the folder to be loaded inside the standalone
5 Test the stack on OSX or Windows: your "Referi_0 folder should get deleted
6 Re-do step 3 to 4 and, this time, try to install on an Android device
You will see that the list of what has been deleted and what is not gets rather confused. I could not make sense of it.
If you feel like, test it on iOS and let me know.
Statistics: Posted by trevix — Tue Sep 24, 2024 6:20 pm