The folder specialFolderPath("engine") on Android is read only. So it's a problem.jim1001 wrote:Well my case is special in that I will be personally installing my app on the few devices that will be using it. The app I’m developing has a lot of media files, eg videos, PDFs, that I don’t want to copy over each time I build & install the app. I will be able to copy these media files to the devices outside LiveCode and reference them by absolute path name from LiveCode.On mobile all the files selected to include in your app, from the Standalone application settings, are copied in specialFolderPath("Engine").
Anyhow I would still like to understand your suggestion.
Can you explain this please? What files and folders do you mean? Where, when and how do you do this?copy all files and folder in specialFolderPath("Documents"),
the folder specialFolderPath("Documents") it's read and write. No problem with files here.
I mean just copy the PDF file to test.pdf :jim1001 wrote:Do you mean ... ?overwrite the test.pdf with your file,
Code: Select all
put URL ("binfile:path/to/myfile.pdf") into URL ("binfile:" & specialFolderPath("Documents") & "/PDFViewer/pdfjs/web/test.pdf")