Android storage can be divided into two types, internal storage, and external storage. This article will introduce both internal and external storage and how to use them to save files in your android application.
This article contains examples about how to create an SQLite database, how to create a table, and how to insert, update, delete, query SQLite tables. You can read the article Android SQLite Database Introduction for general SQLite concepts.
Android uses SQLite as it’s default built-in database. SQLite is a lightweight relational database. The database operation speed is very fast and its occupied disk space is small. Usually, it only needs some hundred KB of disk space to run.
Android SharedPreferences object can be used to store primitive java type data such as int, long, float, boolean, String, etc. It can also be used to save or load custom java objects. This article will tell you how to save objects in SharedPreferences android example.
Android SharedPreferences use key-value pairs to store data. This is an easier way for data storage operation in android. You do not need to care about file operation. You just need to get the SharedPreferences object, give it a key and related value. Then invoke SharedPreferences object’s apply() or commit() method. Then android OS will save …
Android data can be saved in internal storage ( ROM ), external storage(SD card), shared preferences, or SQLite database. This article will introduce how to read and write data in internal storage via a java file.