![]() Primitive data types are data that has been decomposed into units that are native to the programming language (Java in this case). Shared Preference – this tools is used to save primitive data in Android.SQLite is not the only way to save data in Android, there are other options and each has its own use case. For you as a developer the biggest benefit of using SQLite in Android is the small number of installation steps required to install SQLite in Android – the actual number of steps to install SQLite in Android is zero because it is already installed. The designers of Android chose SQLite to be the main data persistence component for Android because of its easy of use, cost, licensing among other reasons. SQLite predates Android, it is used in other major applications other than Android. And what is data persistence you may ask? data persistence is a fancy and more technically correct way of saying data storage. The data you persist are the data that you do not want to loose each time the users of your app close the app. So SQLite is some type of database, why do we need it in Android? well we use it for data persistence in Android.
0 Comments
Leave a Reply. |