jeudi 28 mai 2015

Store user accounts data in preferences or sql... which is better, safer?

I'm creating an app that will need, at the most, probably 16 account's basic information. This includes several items per account such as name, password, and some basic settings. This information will be used periodically throughout the app to access information on the web, and display it to the user as needed. I will probably also be storing other information, per account, in a SQL file so it can be searched, categorized and displayed when requestedd.

I am going to use a Pref Fragment to add/edit each of these account's main information for simplicity (they are all identical in format, just different values) but as I started reading on the differences between shared preferences and SQL, there are alot of pros and cons for using each.

Where would the best place be to store this basic information?

Is this information, including passwords more secure in one vs the other from outside prying eyes?

Some people say that shared preferences can sometimes get corrupted... is that something I need to worry about?

Aucun commentaire:

Enregistrer un commentaire