Page 1 of 1

Storing user's information in android app

Posted: Fri Jan 11, 2019 8:14 am
by adrianyong
If I want to store the username, password, email, phone num, gender, & birthdate to be used inside an Android application, what is the best way & how can I do it?
As Im still a beginner, i will like to have a guide to do it in details or a simple way of answer.
Am actually using this storing method for creating an android app for the registration part of an app.
Thxx :)

Re: Storing user's information in android app

Posted: Fri Jan 11, 2019 8:38 am
by mrcoollion
Hello Adrian,

There are several options.
You can use a flat file
See: http://lessons.livecode.com/m/4071/l/74 ... put-output

or you can store is in an array and save the array as a file. This is my personal favorite because it makes it easy to place and get the data from the file.
See: http://lessons.livecode.com/m/4071/l/95 ... e-it-again

If you want to make it complex you can use a SQLite database.
see: http://lessons.livecode.com/m/4069/l/56 ... e-database

Because you want you data in the file to be safe you can opt to encrypt the data by encrypting the file that contains it. You need to decrypt the file before you can use the file content.
For encryption and decryption of a file see:
http://livecode.wikia.com/wiki/Encrypt
http://livecode.wikia.com/wiki/Decrypt

Hope to have been of some help here.

Regards,

Paul

Re: Storing user's information in android app

Posted: Fri Jan 11, 2019 10:02 am
by Klaus
Hi all,

I moved this thread to the "Beginner" section, since this "feature" is already build-in (Hint, Hint!) 8)


Best

Klaus