Skip to content

moseskamira/RoomDatabaseApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RoomDatabase App

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.

Why ROOM?

ROOM provides an abstraction layer over SQLite to allow for more robust database access.

Expected Key Components in this Implementation include;

  • 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.

Expected Features embedded in the Application include;

  • Add User To Database Table
  • View All Users
  • Delete a User
  • Update User Information

Getting Started

Follow the Instructions below to have the Application running on your machine.

Prerequisites

  • Android Studio
  • JDK
  • Git
  • AVD or Physical device

Installation

Screenshots

Adding User To Database Table

Add User

Viewing All Users In The Database Table

Users List

Delete User From Table

Delete User

Future Improvements

  • Catch App crashing when empty fields are submitted and when duplicate userId is added
  • Implement the use of Live Data
  • Implement the Update functionality

About

The project is intended to implement the use of ROOM database in an Android application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages