Using the app i've uploaded,
you'll need to remove the files from the copy file page under standalone application settings
and on the FileLocations app
clear the file locations text box
and the File Contents text box
and the text box at the bottom before testing
you then test by targeting your physical device.
Once the app fires on your physical device
Press the show engine files button on the physical device
Code: Select all
...
set the defaultFolder to specialfolderpath("engine")
...
put "DefaultFolder: " & return & the defaultFolder & return after fld "FileContents"
...
under file location: you'll see the
/data/app/xxx.xxx.xxx-appName-x.apk/
This is a folder AND a reference to your installation application package
This exact folder in on the physical device and NOT on your SD micro card.
The xxx.xxx.xxx is the Identifier content under the Standalone Application settings under the Android page.
appName-x.apk
- appName is the Lable on the same Android page.
- x is sometime 1 and sometime 2. I'e never seen 3.
I use a free app from he market 'File Expert' to browse the folder
Using File Expert if you click on appName-x.apk it will try to install your app again.
Back to the test app
on the bottom half you'll see a selection drop down box
click the down arrow and select 'engine' or ' documents'
Selecting 'Engine' will show as above with all files and sub-folder, etc.
Code: Select all
set the defaultFolder to specialfolderpath("engine")
As mentioned the specialfolderpath("engine") is protected and is NOT writable.
Selecting 'Documents'
Code: Select all
set the defaultFolder to specialfolderpath("documents")
Gives me:
Default Folder:
/data/app/xxx.xxx.xxx-2.apk/webkit
also the path:
/data/data/xxx.xxx.xxx/files
is where the files you specified to include in your installation on the Standalone App Settings
on the Copy Files Page
This folder is NOT writable once your app has installed.
But the files are readable.
Although, I don't know if these file are readable by your app only.
My last research indicated that LiveCode was unable to install to the sd Card in any way.
A work around is to install the app then use the app to download writable data to a folder on the sd Card.
hth