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.
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:
- 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/
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" |