Why you need a Database?
A scenario can be if your app needs to store data. Like when a user registers then you can save the information for later use.
There can be other reasons also. For example if a user has weak or no network then your app can display the last saved data to the user.
What is SQLite Database?
Android comes with a lighweight database which can be used with your apps. SQLite is an open source lighweight database.
SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
Why use SQLite?
1. It’s lightweight – It uses a file to store data. So no processing time is needed and hence you conserve battery.
2. It’s fast and stable and can handle transactions.
3. It’s optimized for a single user.
How does SQLite store data?
Android creates a data folder for each app where the files reside. Two files are created to store the data.
This folder can only be accessed by the App.
Reference – https://www.sqlite.org/