Accessing files included in standalone settings

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
cusingerBUSCw5N
Posts: 339
Joined: Wed Jul 11, 2012 9:24 pm

Accessing files included in standalone settings

Post by cusingerBUSCw5N » Thu Oct 11, 2012 12:48 am

OK...I'm being dumb again. :?

I want to include a file in my app app_test.txt standalone.

When I try to access it on an android:

put url ("file:" & specialFolderPath("engine") & slash & "app_test.txt") into tFileContents
answer tFileContents

It gives me "no files"

So...where is it storing app_test.txt?

Thank you

cusingerBUSCw5N
Posts: 339
Joined: Wed Jul 11, 2012 9:24 pm

Re: Accessing files included in standalone settings

Post by cusingerBUSCw5N » Thu Oct 11, 2012 1:15 am

ok... I was stupid.

You access it this way:

put url ("file:" & specialFolderPath("documents") & slash & "app_test.txt") into tFileContents
answer tFileContents

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Accessing files included in standalone settings

Post by Klaus » Sat Oct 13, 2012 12:58 pm

Sure?

Everything you add via the "Add files" folder in the standalone builder will DEFINITIVELY be in:
specialfolderpath("engine")

specialfoderpath("documents") is a folder on the actual device and NOTHING is being copied
to that folder automatically by Livecode/your app!

P.S.
Are you sure this is not a leftover from an earlier version of your app?

cusingerBUSCw5N
Posts: 339
Joined: Wed Jul 11, 2012 9:24 pm

Re: Accessing files included in standalone settings

Post by cusingerBUSCw5N » Tue Oct 16, 2012 3:25 pm

thank you. Yes, I have so many prior versions...

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Accessing files included in standalone settings

Post by Klaus » Tue Oct 16, 2012 3:30 pm

Do some cleaning up :)

Post Reply