Android: custom prop vs. .txt?

ambassador at ambassador at
Fri Jun 1 12:20:41 EDT 2012

Nicolas Cueto wrote:

> I have an Android app that uses a small amount of data (under
> 10Kb). The data gets updated regularly. Haven't decided when.
> Perhaps every half-second, or perhaps when the user hits the
> hardware home-button.
> Right now, the data is stored both as a custom prop of the card
> and as a .txt file. Maybe, though, I can just rely on .txt? Or
> would the Android device and/or OS for some reason prefer I use
> "write to txt" as little as possible? Perhaps to save energy?
> Perhaps because it's slower than saving to a custom prop?


Issuing a save command to the stack with the props should take slightly 
longer than writing the data to a file, but with only 10k the difference 
will be negligible.

If you don't need to save often then using custom props will provide 
good efficiency and simple, robust behavior.

- rg/4w

More information about the Use-livecode mailing list