Save my data in Android
Takashi Yoshino
yoshino at sys.wakayama-u.ac.jp
Tue Sep 30 02:58:05 EDT 2014
Thank you for your help!
_.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._
Takashi Yoshino
http://www.wakayama-u.ac.jp/~yoshino/lab/
Tel: +81-73-457-8441
On 2014/09/23, at 19:34, Klaus major-k <klaus at major-k.de> wrote:
> Konichi-wa Takashi-san,
>
> Am 23.09.2014 um 08:58 schrieb Takashi Yoshino <yoshino at sys.wakayama-u.ac.jp>:
>
>> Hi,
>>
>> I would like to save my data in Android.
>>
>> I wrote some texts in the field in my App on Android.
>> When I quit my App, next time the text is lost.
>>
>> Could you tell me how to save my text in the field on Android.
>
> you are allowed to write in -> specialfolderpath("documents"),
> so use something like this when the stack closes or whenever:
> ...
> ## Create a filename
> put specialfolderpath("documents") & "/my_saved_text.text" into tFile
> put the text of fld "your field here" into url("file:" & tFile)
> ...
>
> To read the data in again, you first need to check if the file is present:
> ...
> put specialfolderpath("documents") & "/my_saved_text.text" into tFile
> if there is a file tFile then
> put url("file:" & tFile) into fld "your field here"
> end if
> ...
>
> Hope that helps!
>
>> Best regards,
>>
>> Takashi
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> klaus at major-k.de
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list