how to store the user information in local storage DroidScript

497 Views Asked by At

I am using droidscript . and I don't know how to store the user activities in local storage. because my app isn't connected to the internet. my problem is every time the user log in to my app he finds the same things. so I am looking for a way that could make me store his informations to find it again when he logs in!

2

There are 2 best solutions below

0
Donavan White On

Per the tutorial on their website, it looks like what your looking to do could be accomplished using a JSON file saved to local storage.

http://androidscript.org/droidscript/tutorials/?tutorials=11_WritingJSONToAFile

Each time the app opens, read the file and load the app according to the settings file. This would also allow you to save a settings file separate from a data file.

0
Med Aly On

write his informations in file and save it . app.WriteFile(file,text); to get the informations use : app.ReadFile(file);