Page 1 of 1

Packaging extra files in standalone and saving to folder?

Posted: Thu Aug 25, 2011 7:20 am
by BarrySumpter
I have about 50 extra small files I want to package with my install for Android.

I recall reading a post about how to package extra files with the install
and then save them to folder on first run.

Any help finding this post would be greatly appreciated.

Re: Packaging extra files in standalone and saving to folder?

Posted: Thu Aug 25, 2011 8:08 am
by bn
Hi Barry,

http://forums.runrev.com/phpBB2/viewtop ... standalone

instead of the stack you can add any file/s that way, test on startup of the app if the files are in your desired destination, if not copy them from (specialfoderPath("engine") to your desired location. This works on the iPhone, did not try it on Android, should work though.

Kind regards

Bernd

Re: Packaging extra files in standalone and saving to folder?

Posted: Fri Aug 26, 2011 12:35 pm
by BarrySumpter
Jeez, Bernd.

You rocked on both of those threads.

You were answering those queries like a chess master.

I'm considering moving to iOS just to be exposed to such great support.
Yet another reason to be jelous of iOS LiveCoders.

I've just spent the day sorting out the engine folder and what it means on Android.
And found out the hard way where the Copy Files dialog saves the folder and files on Android install.

Thanks for making it so freakin simple by suggesting I just copy my files from the engine folder
over to the my desired folder if they don't already exist.
Duh. :shock:

It's all fitting into place now.

For some reason I thought there was a technique to load my 50 really small files into a stack.
Kind of like importing a graphic.
Then on first run saving those 50 files to my desired folder if they didn't already exist.

But much easier just using the Copy Files dialog for including a folder and all it contains with a single entry.

Thanks again Bernd.

My Notes:
My apps for my own clients propriatary use and won't be part of the Markets.
I wonder if I can encrypt the 50 text files to protect them from a lost or stolen phone.
But thats another reasearch path.

Re: Packaging extra files in standalone and saving to folder?

Posted: Fri Aug 26, 2011 11:02 pm
by BarrySumpter
A good nights sleep after a very agrovating day.

I could write a routine that just
creates seperate text field for each text file
then import/url into .

Then I wouldn't have 50 extra text files on the engine folder.
I wonder, can I delete files from the engine folder even thou I can't create nor modify?
So I could use Copy Files in my install set, copy them to my app folder, then delete them from the engine folder.