Image may be NSFW.
Clik here to view.Storing data locally in Android is very easy. Here are few ways we can do it:
- Using SharedPreferences
- Using Files
- Using SQL databases.
This tutorial will tell you how to save data using SQL databases. For this we are taking a very simple application which stores a very simple list of tasks with their boolean status: done or not done.
The Database
The database contains only one table called "task" which has the following columns:
- Id
- Task
- Status
This tutorial will show us how to save data in a SQL database. For this we are would build a very simple application which stores a list of tasks with their boolean status(whether done or not done).