Engineering ProjectsBsc-ITDiplomaIT ProjectsMsc-IT Projects

COVID-19 Quarantine Management with Android Geofencing App


Enforcing quarantine during the ongoing COVID-19 pandemic has presented unprecedented challenges for authorities worldwide. Our Android Geofencing App for quarantine management offers an innovative solution to monitor and regulate the movement of quarantined individuals.


  • Two Users Interface: The app is designed for two types of users—Admin and Patient.
  • Boundary Setting: Admins can set geographical boundaries, measured in meters, to confine the quarantined individual.
  • Movement Tracking: The app records and displays the movement of the patient within the set geographical boundary.
  • Google Sign-In: Users can easily sign in through their Google account.
  • Account Freezing: Users have the option to freeze their accounts temporarily if necessary.

How it Works

The application utilizes geofencing technology to create a virtual perimeter around the quarantine location. When a user, flagged as ‘Positive,’ steps out of this boundary, an alert is sent to the Admin. Admins can not only set these boundaries but can also monitor how many times a person has moved in or out of the fenced area.

Security Measures

The app is secure, with login and logout options managed by the Admin. Only those with the password can logout or disable location updates, making the system tamper-proof.


  • Enhanced Compliance: The app ensures that quarantined individuals are staying within designated areas, thereby improving overall compliance.
  • Efficient Monitoring: Allows authorities to monitor multiple patients simultaneously, reducing the need for physical surveillance.
  • User Convenience: Google Sign-In and the ability to freeze accounts provide user flexibility while maintaining stringent monitoring.


The Android Geofencing App is a vital tool in the battle against COVID-19. It balances the need for stringent monitoring with user convenience and administrative efficiency, making it an indispensable asset for effective quarantine management.

Sample Code


<manifest ... >
  <!-- Permissions -->
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  <!-- Services -->
  <service android:name=".GeofenceTransitionsIntentService" />

import android.content.Intent;

public class MainActivity extends AppCompatActivity {
    private GeofencingClient geofencingClient;
    private PendingIntent geofencePendingIntent;

    protected void onCreate(Bundle savedInstanceState) {

        geofencingClient = LocationServices.getGeofencingClient(this);

        // Create a Geofence
        Geofence geofence = new Geofence.Builder()
            .setCircularRegion(37.422, -122.084, 100) // lat, long, radius in meters
            .setTransitionTypes(Geofence.GEOFENCE_TRANSITION_ENTER | Geofence.GEOFENCE_TRANSITION_EXIT)

        // Create a GeofencingRequest
        GeofencingRequest geofencingRequest = new GeofencingRequest.Builder()

        // Create a PendingIntent
        Intent intent = new Intent(this, GeofenceTransitionsIntentService.class);
        geofencePendingIntent = PendingIntent.getService(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);

        // Add Geofence
        geofencingClient.addGeofences(geofencingRequest, geofencePendingIntent);

import android.content.Intent;

public class GeofenceTransitionsIntentService extends IntentService {
    public GeofenceTransitionsIntentService() {

    protected void onHandleIntent(Intent intent) {
        GeofencingEvent geofencingEvent = GeofencingEvent.fromIntent(intent);

        if (geofencingEvent.hasError()) {
            // Handle error

        int geofenceTransition = geofencingEvent.getGeofenceTransition();

        if (geofenceTransition == Geofence.GEOFENCE_TRANSITION_ENTER) {
            // Send notification or alert to Admin about the quarantine violation
        } else if (geofenceTransition == Geofence.GEOFENCE_TRANSITION_EXIT) {
            // Send different notification or alert
Click to rate this post!
[Total: 0 Average: 0]

Download COVID-19 Quarantine Management with Android Geofencing App PDF

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button