RiyanDai / mobile-development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dantion Android App

Capstone project Bangkit 2022 Dantion App

About Our App

Dantion is a fast response application that can detect emergency situations (crimes, accidents, or fires) through voice recordings and report the location of the incident to the authorities automatically.

How To Make This Android App Project

How To Build This Project

If you build this application an error will occur. Because this application requires an API Key to display the Google Map. Follow this tutorial to generate Google map api key

Set up in Cloud Console (Note: ignore the other steps from this link)

Once you have the api key, follow these steps:
local-properties

  • Open local.properties file
  • Inside your local properties, set MAPS_KEY variable
MAPS_KEY = your-api-key
  • Set BASE_URL variable
BASE_URL = https://dangerdetection.et.r.appspot.com/
  • Set WEB_URL variable
WEB_URL=https://dantion.herokuapp.com/

Libraries We Use

Library name Usages Dependency
Retrofit2 Request API and convert json response into an object implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
Tflite Machine learning process implementation "org.tensorflow:tensorflow-lite-task-audio:0.3.0"
Maps Google maps service implementation "com.google.android.gms:play-services-maps:18.0.2"
implementation "com.google.android.gms:play-services-location:19.0.1"
OkHttp Make a data request to the server implementation "com.squareup.okhttp3:logging-interceptor:4.9.3"
Datastore Save data in local storage implementation("androidx.datastore:datastore-preferences:1.0.0")
Navigation component Navigation between pages implementation "androidx.navigation:navigation-fragment-ktx:2.4.2"
implementation "androidx.navigation:navigation-ui-ktx:2.4.2"
Room Local database implementation "androidx.room:room-ktx:2.4.2"
implementation "androidx.room:room-runtime:2.4.2"
Lifecycle Connecting frontend and backend implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.4.1"

About


Languages

Language:Kotlin 100.0%