Reputation: 1111
I am developing an Android application. This app deals with contact information (name, number, photo), which I need to store locally for later processing. This data also needs to be modified frequently.
What would be a good way to achieve this? I was thinking of "File input stream Internal file storage(achieved by serialized)" and SQLite, but am confused about both of them.
Can anyone tell me the difference between these two in terms of performance, speed, memory consumption etc.?
(Besides, what is SQLite3?)
Upvotes: 0
Views: 1350
Reputation: 15701
as your data is like contact information name, number, photo for any people so prefer SQlite
it will be easy and effiecent to add update and delete
Consider the point native Contact also uses the SQlite for same type of data set
Upvotes: 0
Reputation: 109257
(My personal opinion)
Database is slow compare to File but it help you in getting data in arranging formats and easily you can perform any aggregate function on it. I suggest you to use Database in your requirements. As you can store particular record in arranged format.
SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
Upvotes: 1