Code

Emergency

Emergency

Emergency – Technical Overview

Emergency is an Android app designed to provide quick response tools in emergency situations. It combines practicality, accurate geolocation, automated message sending, and personal safety tools — all with a clean and accessible interface, even offline.

Compatible with SDK versions 29 to 34, the app is built using AndroidX and strictly follows Material Design best practices. All logic is written in Java, without using Jetpack Compose.

Key Features

- SOS Button on the Home Screen

With a single tap, the app sends an emergency message including your current location (GPS) to predefined contacts.
It also triggers an interactive notification with a shortcut to call 190 directly.

- “I’m OK” Button

Allows sending reassuring messages to inform contacts that you’re safe.

- SOS Widget (Home Screen Button)

Users can add a button to the home screen by long-pressing the app icon → selecting Widgets → and dragging the button.
The emergency message is sent without opening the app, which is critical in high-risk situations.

- Custom Emergency Messages (with WhatsApp Support)

Create specific messages (positive or negative tone) for each button. Users can send messages via SMS and optionally via WhatsApp, if installed.

- Real-Time Location Sharing

Displays the current address, DMS-format coordinates, and allows sharing via other apps or copying to clipboard.

- Smart Compass

Built-in compass shows direction (e.g., North, Southwest), azimuth reading, and uses magnetic/accelerometer sensors. Ideal for outdoor navigation.

- Useful Emergency Contacts

A dedicated screen to save and quickly dial emergency numbers such as police, fire department, or hospitals.
Full add, edit, and delete support.

- Quick Shortcuts (App Shortcuts)

Access key functions such as Map and Emergency Phones by long-pressing the app icon (Android 7.1+).

-OpenStreetMap

View your real-time location with animated markers. Supports zoom, satellite, hybrid, and terrain modes.

Privacy & Security

No personal data is transmitted or stored on external servers.

All user data (messages and contacts) is stored locally on the device.

The app works without an internet connection, supporting SMS-based operation in low coverage areas.

Supported Languages

  • Portuguese (Brazil and Portugal)
  • English (US)
  • Spanish
  • French
  • German
  • Russian
  • Polish

Technical Highlights

Fully written in Java, without Jetpack Compose

- Uses FusedLocationProviderClient for accurate GPS tracking

- SQLite local database managed by custom DBHelper class

- Integrated Toasty library for consistent visual feedback

- Modular and maintainable code architecture

- Built with modern Material Design components

- Fully compatible with Android 10 (API 29) to Android 14 (API 34)

Download Demo .apk from here

DEMO LINK

For any inquiry, app support or app customization contact us at – ddquixote@bol.com.br

What You Get

  • Full Android Source Code
  • Full Document with Screen Shot

Customer Support

I offer free awesome after sales support. I do care about your apps as much as you and I will help you in any way possible.
Working hours: 10:00 – 17:00h, UTC+05:45. From Monday to Friday.

Free Lifetime Updates – get all the new features I add in each future update for free.
For any inquiry, app support or app customization contact us at – ddquixote@bol.com.br

Rate the app

Please consider rating the app if you are satisfied with the product. Thank you.

Changelog :

Emergency v1.0.3 (03/07/2025)

Map Functionality

- Replaced Google Maps with OpenStreetMap (OSM) using the osmdroid library

- Adjusted camera centering and animation logic (MapController.animateTo)

- Refactored code to keep current location updates working

- Fixed LocationListener and dynamic marker updates on location change

Permissions & Location Handling

- Improved permission request flow using ActivityCompat

- Added GPS status validation with alert for disabled location

UI & Navigation Improvements

- Created new screen Nearby Places with quick access to:

- Nearby Hospitals

- Nearby Police Stations

- Nearby Mechanics

- Refactored UI buttons to launch specific place searches

AdMob Ads Integration

- Integrated Google AdMob with support for:

- Banner Ads

- Interstitial Ads (with cooldown logic)

- Native Ads (custom layout)

- Centralized ad logic using AdManager class
by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey