Storing user's information in android app

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
adrianyong
Posts: 3
Joined: Sat Dec 08, 2018 2:59 pm

Storing user's information in android app

Post by adrianyong » Fri Jan 11, 2019 8:14 am

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 :)

mrcoollion
Posts: 720
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Storing user's information in android app

Post by mrcoollion » Fri Jan 11, 2019 8:38 am

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

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Storing user's information in android app

Post by Klaus » Fri Jan 11, 2019 10:02 am

Hi all,

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


Best

Klaus

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”