Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LocalStorage vs Sqlite database

I have a hybrid application which runs on Android and ios platform, I have been using "localStorage" as data storage.

I also heard sqlite as well, Is there any other local database that I can use for mobile storage?

I would like to know prop and cons in these technologies.

I would really appreciate if anyone can clarify about these technologies.

like image 528
ExCode Avatar asked Feb 22 '14 04:02

ExCode


Video Answer


1 Answers

You can manage data or storage in Android by following ways,

  1. Shared Preferences

  2. Internal Storage

  3. External Storage

  4. SQLite Databases

  5. Network Connection

You can manage the storage or data in iOS by following ways,

  1. Property lists

  2. SQLite database

  3. Core Data

As you say that you have a hybrid application which is for Android and ios you should use SQLite database, because

  1. It is light weight

  2. Comfortable with both Android and iOS [ Cross platform ]

  3. capacity to Handle huge data

  4. The handling of code, manipulating the code is much easy with sqlite.

So, its my opinion to u that you should use SQLite as an database for hybrid application, it will be easy for you. If you are doing application only for iOS then core date can be another good option since you doing both one SQLite is best.

like image 110
Learning Programming Avatar answered Oct 20 '22 16:10

Learning Programming