{"id":19581271,"url":"https://github.com/farhansadaf/emergency-app","last_synced_at":"2025-07-17T23:10:46.130Z","repository":{"id":218261547,"uuid":"230649934","full_name":"FarhanSadaf/Emergency-app","owner":"FarhanSadaf","description":"Android Application","archived":false,"fork":false,"pushed_at":"2021-06-12T11:02:53.000Z","size":4390,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-27T09:35:28.863Z","etag":null,"topics":["android-application","emergency-response","intellij-platform","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FarhanSadaf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-12-28T18:45:41.000Z","updated_at":"2025-04-08T21:10:48.000Z","dependencies_parsed_at":"2024-01-20T20:34:06.481Z","dependency_job_id":null,"html_url":"https://github.com/FarhanSadaf/Emergency-app","commit_stats":null,"previous_names":["farhansadaf/emergency-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FarhanSadaf/Emergency-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FarhanSadaf%2FEmergency-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FarhanSadaf%2FEmergency-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FarhanSadaf%2FEmergency-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FarhanSadaf%2FEmergency-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FarhanSadaf","download_url":"https://codeload.github.com/FarhanSadaf/Emergency-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FarhanSadaf%2FEmergency-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265677786,"owners_count":23810038,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-application","emergency-response","intellij-platform","java"],"created_at":"2024-11-11T07:34:40.363Z","updated_at":"2025-07-17T23:10:46.112Z","avatar_url":"https://github.com/FarhanSadaf.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BACHAO\nAs 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.\nThough 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).\nSo 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.\nThis app brings out just these.\n\n\n## FEATURES:\n\nUser can activate Danger Mode just TAPPING POWER BUTTON MORE THAN 4 TIMES (API level 28 or 29). Which will lead to \n1. Call emergency number (999 for BD)\n2. Sending messages to the numbers user has set up (As much as user wants)\n3. Sending their current location with message\n4. User can also get numbers of AMBULANCE, POLICE, FIRE SERVICE of different divisions of Bangladesh and call these numbers straight.\n5. 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.\n\n\n## App demo\n\n\u003ctable \u003e\n  \n  \u003ctr\u003e\n    \u003cth\u003eSignup\u003c/th\u003e\n    \u003cth\u003eLogin\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd width=33%\u003e\n      \u003cimg src=\"https://github.com/FarhanSadaf/Emergency-app/blob/master/tutorials/1-create%20account.jpg\"\u003e\n    \u003c/td\u003e\n    \u003ctd width=33%\u003e\n      \u003cimg src=\"https://github.com/FarhanSadaf/Emergency-app/blob/master/tutorials/2-login.jpg\"\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \n  \u003ctr\u003e\n    \u003cth\u003eWelcome window after signup\u003c/th\u003e\n    \u003cth\u003eHome screen\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd width=33%\u003e\n      \u003cimg src=\"https://github.com/FarhanSadaf/Emergency-app/blob/master/tutorials/3-welcome%20screen.jpg\"\u003e\n    \u003c/td\u003e\n    \u003ctd width=33%\u003e\n      \u003cimg src=\"https://github.com/FarhanSadaf/Emergency-app/blob/master/tutorials/4-home%20screen.jpg\"\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \n  \u003ctr\u003e\n    \u003cth\u003eSettings window\u003c/th\u003e\n    \u003cth\u003eUpdate / Delete contacts\u003c/th\u003e\n    \u003cth\u003eAdvanced settings window\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd width=33%\u003e\n      \u003cimg src=\"https://github.com/FarhanSadaf/Emergency-app/blob/master/tutorials/5-settings%20screen.jpg\"\u003e\n    \u003c/td\u003e\n    \u003ctd width=33%\u003e\n      \u003cimg src=\"https://github.com/FarhanSadaf/Emergency-app/blob/master/tutorials/6-%20settings%20update%20numbers.jpg\"\u003e\n    \u003c/td\u003e\n    \u003ctd width=33%\u003e\n      \u003cimg src=\"https://github.com/FarhanSadaf/Emergency-app/blob/master/tutorials/7-advanced%20settings%20screen.jpg\"\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \n  \u003ctr\u003e\n    \u003cth\u003eEmergency mode initiated\u003c/th\u003e\n    \u003cth\u003eAfter 4+ tap on power button\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd width=33%\u003e\n      \u003cimg src=\"https://github.com/FarhanSadaf/Emergency-app/blob/master/tutorials/8-emergency.jpg\"\u003e\n    \u003c/td\u003e\n    \u003ctd width=33%\u003e\n      \u003cimg src=\"https://github.com/FarhanSadaf/Emergency-app/blob/master/tutorials/9-emergency%20after%20pressing%20power%20button.jpg\"\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \n  \u003ctr\u003e\n    \u003cth\u003eEmergency contacts window\u003c/th\u003e\n    \u003cth\u003eDetailed emergency contacts\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd width=33%\u003e\n      \u003cimg src=\"https://github.com/FarhanSadaf/Emergency-app/blob/master/tutorials/10-emergency%20contacts.jpg\"\u003e\n    \u003c/td\u003e\n    \u003ctd width=33%\u003e\n      \u003cimg src=\"https://github.com/FarhanSadaf/Emergency-app/blob/master/tutorials/11-emergency%20contacts%20(2).jpg\"\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \n  \u003ctr\u003e\n    \u003cth\u003eSidebar\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd width=33%\u003e\n      \u003cimg src=\"https://github.com/FarhanSadaf/Emergency-app/blob/master/tutorials/12-side%20bar.jpg\"\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## UNDER THE HOOD:\n\nI used FireBase Authentication to sign the users into the app. \n\nFireBase Realtime Database is also used to store Numbers whom user want to send message in case of emergency and Name of the user.\n\nMap API is used to get current location from GPS, to be precised, latitude and longitude.\n\nJSON format is also used to parse Emergency Ambulance, Fire Service or Police numbers of different divisions.\n\nI also used SharedPreference to store some additional detailed settings like \n- Setting up time counter\n- Functionalities that should be used in Danger Mode\n- Saving previous location if somehow phone can't parse current location from GPS.\n\nAs UI design elements, I used Custom TOOLBAR, CARDVIEW, LISTVIEW, EXPANDABLE LISTVIEW, NAVIGATION DRAWER, ALERT DIALOGUE, POP-UP DIALOGUE, SPINNER, CHECKBOX and so on.\n\nAs the app needs to be opened in background, i had to use Custom NOTIFICATION CHANNEL and BroadcastReceiver.\n\nI also had to implement functionalities to make a CALL, send MESSAGE, send custom EMAIL or using VIBRATOR etc.\n\n\u003cstrong\u003e\u003cbr/\u003eProject - CSE 2200 (Advanced Programming)\u003c/strong\u003e\n\n## Licensing\nLicensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarhansadaf%2Femergency-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarhansadaf%2Femergency-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarhansadaf%2Femergency-app/lists"}