The project is intended to show an implementation of the ROOM Persistence Library in an Android application.
It also considers an implementation of several Fragments in a single Activity.
ROOM provides an abstraction layer over SQLite to allow for more robust database access.
- Entity (@Entity): Used to create table in the database by using the data model class
- Data Access Object (@Dao): Used to create ways of accessing data in the database,. It can have several abstract methods.
- Database (@Database): This creates an abstraction layer for the Data Access Object.
- Add User To Database Table
- View All Users
- Delete a User
- Update User Information
Follow the Instructions below to have the Application running on your machine.
- Android Studio
- JDK
- Git
- AVD or Physical device
- Clone the repo on the link: https://github.com/moseskamira/RoomDatabaseApp.git
- Import the project into android studio
- Create an android virtual device (AVD) and have it started
- Run the project
- Catch App crashing when empty fields are submitted and when duplicate userId is added
- Implement the use of Live Data
- Implement the Update functionality


