It is an andorid application built in kotlin for the users to store contacts , consisting of fields like name , email id and Phone Number. It stores the contacts on the ui itself and the user can create a new contact , modify an existing contact and delete a contact. It uses recycler view tp create a list view of contacts stored in the UI itself , using ROOM database.
- Android Studio
- Kotlin
- ROOM database
git clone https://github.com/Sachdevabhavya/ContactManagerApp.git
Add the following dependencies to run the app in the following file given :
- build.gradle.kts(module)
implementation("androidx.room:room-runtime:2.6.1")
implementation("androidx.room:room-ktx:2.6.1")
kapt("androidx.room:room-compiler:2.6.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1")
val lifecycle_version = "2.6.2"
//View Model
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version")
//Live Data
implementation("androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version")
compile Sdk = 34
target Sdk = 34
Add the following plugins to run the app in their respective file given :
- build.gradle.kts(module)
id("kotlin-kapt")
- build.gradle.kts(project)
kotlin("kapt") version "1.9.22"
In Build.gradle file add the following code in android :
buildFeatures{
dataBinding = true
}
-
The contacts will remain stored even if the app is stopped , because the data is stored using a ROOM database
This app is made for android 7 and above versions
- Phone Number field is also added