I’m new and trying to create a login activity (username & password) in android. Just want to ask which is more fitting to use? Using sharedPreferences or using SQLite? In terms of security and size. I already have a SQLite database for data.
Share
If you already have a database then you can use the database for your login functionality. If there will be a lot of users for your app that are login from the same device then I think the database is more faster, but I don’t believe there will be more than 5 users/device.
Both of the methods are secured, as I know you can’t get the database file of an app from the phone and neither the preferences..
Good luck!