https://github.com/farhansadaf/emergency-app
Android Application
https://github.com/farhansadaf/emergency-app
android-application emergency-response intellij-platform java
Last synced: 23 days ago
JSON representation
Android Application
- Host: GitHub
- URL: https://github.com/farhansadaf/emergency-app
- Owner: FarhanSadaf
- License: mit
- Created: 2019-12-28T18:45:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-12T11:02:53.000Z (almost 4 years ago)
- Last Synced: 2024-01-20T20:23:35.006Z (over 1 year ago)
- Topics: android-application, emergency-response, intellij-platform, java
- Language: Java
- Homepage:
- Size: 4.19 MB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BACHAO
As name suggests, it is an emergency android application. Situations can arrive when one may need to let his family and friends know that he/she is in DANGER.
Though some mobile phones have a built-in app to tackle this situation, but most of them only calls to a emergency number only (999 or so).
So they lack some functionalities like MESSAGING the close ones to let them know that the victim is in danger or sending LOCATION of victim to them.
This app brings out just these.## FEATURES:
User can activate Danger Mode just TAPPING POWER BUTTON MORE THAN 4 TIMES (API level 28 or 29). Which will lead to
1. Call emergency number (999 for BD)
2. Sending messages to the numbers user has set up (As much as user wants)
3. Sending their current location with message
4. User can also get numbers of AMBULANCE, POLICE, FIRE SERVICE of different divisions of Bangladesh and call these numbers straight.
5. User can sign in to his own account and save his information. So next time if he reinstall the app, there's no need to update information twice.## App demo
Signup
Login
![]()
![]()
Welcome window after signup
Home screen
![]()
![]()
Settings window
Update / Delete contacts
Advanced settings window
![]()
![]()
![]()
Emergency mode initiated
After 4+ tap on power button
![]()
![]()
Emergency contacts window
Detailed emergency contacts
![]()
![]()
Sidebar
![]()
## UNDER THE HOOD:
I used FireBase Authentication to sign the users into the app.
FireBase Realtime Database is also used to store Numbers whom user want to send message in case of emergency and Name of the user.
Map API is used to get current location from GPS, to be precised, latitude and longitude.
JSON format is also used to parse Emergency Ambulance, Fire Service or Police numbers of different divisions.
I also used SharedPreference to store some additional detailed settings like
- Setting up time counter
- Functionalities that should be used in Danger Mode
- Saving previous location if somehow phone can't parse current location from GPS.As UI design elements, I used Custom TOOLBAR, CARDVIEW, LISTVIEW, EXPANDABLE LISTVIEW, NAVIGATION DRAWER, ALERT DIALOGUE, POP-UP DIALOGUE, SPINNER, CHECKBOX and so on.
As the app needs to be opened in background, i had to use Custom NOTIFICATION CHANNEL and BroadcastReceiver.
I also had to implement functionalities to make a CALL, send MESSAGE, send custom EMAIL or using VIBRATOR etc.
Project - CSE 2200 (Advanced Programming)## Licensing
Licensed under the [MIT License](LICENSE).