Blood Donation Android App with Google Maps (Java/XML + Firebase) | Tour2Tech
Home / Projects / Blood Donation using Google Map
LIMITED OFFER
Get up to ₹1,000 OFF
Use coupon MYProject when you book via WhatsApp/Call. We don’t sell online.
Android • Firebase • Google Maps

Blood Donation Android App with Google Maps

A production-ready blood donation android app in Java/XML with Firebase Realtime Database and Google Maps API. Two apps—Donor and Hospital. Hospitals post blood requirements; donors nearby discover requests on the map/list and send donation requests. Hospitals approve/decline and the status updates in real time. Includes an NLP chatbot for eligibility and safety guidance.

  • Complete Android Studio project (Java/XML) + Firebase setup
  • Location-based matching with Google Maps markers & distance
  • Real-time approvals with secure role-based access
Delivery in 3–5 days • Pan-India support
*Demo video placeholder. Replace with your link.
Project Objective

Build a reliable, privacy-aware blood donor finder app that connects hospitals and donors using geolocation. Hospitals publish verified blood requirements (type, units, urgency), donors nearby discover and request to donate, and hospitals confirm suitable donors with instant status updates. An NLP chatbot answers eligibility, preparation, and post-donation care queries.

How It Works
  1. Hospital App: Create a blood request post with blood group, units, hospital location (lat/lng), contact, and notes.
  2. Donor App: Fetch current location and load nearby requests on Google Maps & list (sorted by distance).
  3. Request to Donate: Donor taps a post → reads details → sends request; hospital receives a notification.
  4. Approve/Decline: Hospital reviews donor profile and approves/declines. Donor sees live status changes.
  5. NLP Chatbot & Videos: Built-in assistant and a video tab for donation safety, diet, and after-care tips.
Project Modules
Hospital Admin

Publish, manage, and close requests; approve/decline donors.

  • Create/Edit/Delete posts
  • Verify donor requests
  • Mark fulfilled
Donor App

Discover nearby requests and send donation requests.

  • GPS location fetch
  • Map & list views
  • Live request status
Google Maps & Distance

Markers with info windows, directions deep links.

  • Haversine sorting
  • Radius filters
  • Open in Maps
NLP Chatbot + Videos

Donation eligibility Q&A and safety video hub.

  • Contextual prompts
  • Guardrails + FAQs
  • YouTube/WebView tab
Firebase Realtime Database Structure (Example)
{
  "hospitals": {
    "hospUid1": {"name":"City Hospital","role":"hospital","lat":18.5204,"lng":73.8567}
  },
  "donors": {
    "donorUidX": {"name":"Amit","role":"donor","bloodGroup":"B+","lastDonatedAt":1723000000}
  },
  "requests": {
    "reqId123": {
      "byHospital":"hospUid1",
      "bloodGroup":"A+",
      "units":2,
      "lat":18.521,
      "lng":73.857,
      "notes":"Urgent for surgery",
      "status":"open",
      "createdAt":1725345600
    }
  },
  "donationRequests": {
    "reqId123": {
      "donorUidX": {
        "status":"pending",      // pending|approved|declined|completed
        "requestedAt":1725350001,
        "updatedAt":1725350001
      }
    }
  }
}
              
Sample Firebase Security Rules (High-Level)
// Realtime Database Rules (illustrative)
{
  "rules": {
    ".read": false,
    ".write": false,

    "hospitals": {
      "$uid": {
        ".read": "auth != null",
        ".write": "auth != null && auth.uid === $uid"
      }
    },

    "donors": {
      "$uid": {
        ".read": "auth != null && auth.uid === $uid",
        ".write": "auth != null && auth.uid === $uid"
      }
    },

    "requests": {
      ".read": "auth != null",  // donors need to read open requests
      "$reqId": {
        // only hospital who created can write/close
        ".write": "auth != null && root.child('requests/'+$reqId+'/byHospital').val() === auth.uid"
      }
    },

    "donationRequests": {
      "$reqId": {
        "$donorUid": {
          // donor creates/updates own request; hospital updates status
          ".read": "auth != null && (auth.uid === $donorUid || root.child('requests/'+$reqId+'/byHospital').val() === auth.uid)",
          ".write": "auth != null && (auth.uid === $donorUid || root.child('requests/'+$reqId+'/byHospital').val() === auth.uid)"
        }
      }
    }
  }
}
              
Tighten reads for privacy (e.g., restrict hospital coordinates to authenticated donors only).
Key Features & Benefits
  • Two-app workflow aligning hospital supply with donor availability.
  • Maps-first UX to quickly locate nearby hospital requests.
  • Real-time updates for request lifecycle and notifications.
  • NLP assistant for donor eligibility, diet, and after-care.
  • Secure roles with Firebase Authentication & Rules.
Android Integration Sketch (Java/XML)
// PSEUDO-CODE (illustrative)

// DonorMapViewModel.java
void loadNearby(double lat, double lng, double radiusKm) {
  // 1) Listen to /requests where status == open
  // 2) Compute distance Haversine; filter radius; sort by ascending distance
  // 3) Expose LiveData> to map & list adapters
}

// Donor sends request
void sendDonationRequest(String reqId, String donorUid) {
  // Write /donationRequests/{reqId}/{donorUid} = {status:'pending', requestedAt:now}
  // Add listener for status changes to update UI in real time
}

// Hospital approval
void setDonationStatus(String reqId, String donorUid, String newStatus) {
  // Only hospital owner can write; rules enforce this
}

// NLP Chatbot (Callable Function)
exports.donorChatbot = functions.https.onCall((data, context) => {
  // Validate auth, sanitize input; apply prompt with safety guardrails
  // Return structured suggestions (eligibility, prep, after-care)
});
              
We provide full working Android Studio projects for both apps with organized packages, XML layouts, and Firebase wiring.
What You Get
ItemIncludedNotes
Android Source Code (Java/XML) — Donor & HospitalClean architecture, comments, modular
Firebase SetupAuth + Realtime DB + Rules templates
Google Maps IntegrationMarkers, clustering (optional), distance sort
NLP Chatbot IntegrationPrompt templates + guardrails (Callable)
Demo VideoSetup & working walkthrough
Report & PPTCollege-format templates
SupportInstallation + viva Q&A (1 month)

FAQs — Blood Donation Android App

A two-sided Android app (Donor & Hospital) for location-based blood donation using Firebase and Google Maps with real-time request approvals.

Recent requests cache locally; writes queue and sync automatically when online.

Yes. Radius and sorting are configurable in ViewModel/Repository.

Role-based Firebase Rules enforce who can create, update, and read records. Sensitive fields can be further restricted.

Why Students Choose Tour2Tech

Proven Quality

300+ projects delivered with top reviews & on-time submissions.

End-to-End Support

From setup to viva—demo videos, docs, and Q&A support.

Customization

Add analytics, dashboards, or donor verification flows.

Fair Pricing

Transparent kit + support model with coupon savings.

Project Buying Guide

01

Discuss Project Requirement

Connect with Yogesh Sir on Call or WhatsApp at +91 9172422245 for a free consultation. Get complete details on development and working.

02

Create a WhatsApp Group

Add your team to receive weekly updates, project source code, PPTs, and reports.

03

Advance Payment

Make 45% advance payment; remaining on completion. Invoice shared.

04

Project Demo & Teaching

Join a live demo with code explanation and recording. Minor changes included.

05

Installation & Support

We install & set up on your laptop and provide 1 month of support.

What Students Say

⭐⭐⭐⭐⭐ Trusted by 1000+ students

Real WhatsApp chats from students after delivery and submission. Add your screenshots below.

Review of blood donation android app project 1
Review of blood donation android app project 2
Review of blood donation android app project 3
Review of blood donation android app project 4

Looking for a placement-ready Android project?

Get the Blood Donation Android App with code, demo, docs, and support.

WhatsApp Us Now
Shopping Cart
Scroll to Top
Open chat
Need help in Admission?
Hello! 👋 Welcome to Tour2Tech Academy!

We’re here to help you succeed in your engineering journey with:

🌟 Final Year Projects
🎯 College Admission Consultancy
📚 Career Guidance and Skill-Building Courses

How can we assist you today? Whether you need help with a project, are looking for career guidance, or want to know more about our services, we’re just a message away! 😊