Courses / Mobile Application Development (CDE-315) – BS CS 5th Semester

Course Project – Start Here: Choose Your App, Feature Map, Milestones and Rubric

Course Project (Java) – Build a Modern Cloud App Step by Step (CampusPulse + 7 ideas) · 30 min read · 3 MCQs to check yourself

Google Design – Introducing Material 3 Expressive (the look we aim for)

The course project in one sentence

You will build one modern, cloud-connected Android app from scratch – step by step, through the whole semester – that uses every lab you did, plus a real Supabase cloud database.

The whole project is written in Java (layouts in XML), like the labs. The reference app is CampusPulse – your campus, live: students sign in, see upcoming events, open an event to see a live countdown, the venue on a map, call or email the organiser, share it by SMS, post new events with their current location, get a notification, and send feedback. Every screen is written out for you with full code; you can keep CampusPulse or switch to one of the other ideas below with small changes.

What the finished app looks like

┌──────────────────────────────┐  ┌──────────────────────────────┐
│ CampusPulse        ⟳  ⋮      │  │ ←  Tech Talk: AI on Phones   │
│ ╭──────────────────────────╮ │  │ ╭──────────────────────────╮ │
│ │ Hi Ayesha 👋              │ │  │ │  STARTS IN               │ │
│ │ 5 upcoming events         │ │  │ │  2d 04h 13m 09s          │ │
│ ╰──────────────────────────╯ │  │ ╰──────────────────────────╯ │
│ (All)(Academic)(Sports)(Tech)│  │ 🗓 Fri 12 Dec 2026, 10:00 AM  │
│ ┌──┐ Tech Talk: AI on Phones │  │ 📍 Seminar Hall, Block C     │
│ │12│ Fri 10:00 AM · Hall C   │  │ [Map] [Call] [Website]       │
│ │DEC│                Tech    │  │ [Share by SMS] [Email]       │
│ └──┘ ...                     │  │                              │
│ [Home] [Add] [Feedback] [Me] │  │                              │
└──────────────────────────────┘  └──────────────────────────────┘

Why it is "modern"

Modern feature What it means
Material 3 + dynamic colour The app takes its colours from the user's wallpaper on Android 12+ ("Material You")
Dark mode A switch in Profile; saved with SharedPreferences
Splash Screen API The Android 12+ animated launch screen – on all versions
Edge-to-edge The app draws behind the status and navigation bars
Java + lambdas, Retrofit callbacks Clean, readable code; network calls run in the background so the UI never freezes
Cloud data tier Supabase PostgreSQL with sign-in and Row Level Security
Location-aware Events store GPS coordinates; one tap opens the map

Every lab is inside the project

Lab Feature in the project Step
1 – Android Studio, Hello World Create the project, run it 1
2 – Mobile web page (HTML5) About page in assets/about.html, shown in a WebView 6
3 – Resources (strings, images) Branding: strings, colours, logo, avatar 1, 6
4 – Two activities Sign-in → Register → Main → Event detail (intents, extras, result) 3, 4
5 – Bottom navigation + fragments Home, Add, Feedback, Profile tabs 2
6 – Browser, dialer, notification Website and Call buttons; "Event published" notification 4, 5, 6
7 – Registration form Sign-up form with EditText, RadioButton, dropdown, CheckBox 3
8 – Menu + messages Toolbar menu: Refresh, Dark mode, About, Sign out 2
10 – SharedPreferences Session, remembered email, dark-mode setting 1, 3
11 – SMS and email Share an event by SMS, email the organiser, email support 4, 6
12 – API + RecyclerView Events list from Supabase with Retrofit 4, 8
13 – Countdown timer Live "starts in" countdown; 10-second undo before feedback is sent 4, 6
14 – Map from coordinates "Open in Maps" for the venue 4
15 – Current location "Use my location" when posting an event; location in feedback 5, 6
16 – APK Signed release APK installed on a phone 10
17 – Campus Feedback mini project Feedback tab: form, countdown, location, email copy 6
Supabase week Tables, Row Level Security, sign-up/sign-in, cloud data 7, 8

Pick your project

All ideas use the same app and the same steps. Only the names, categories and a few labels change.

Option What one record is starts_at means Location means Contact / link Countdown shows
CampusPulse (reference) A campus event Event start Venue Organiser phone / email, event page Time until the event
CleanCity A reported problem (pothole, garbage) When it was spotted / fix-by date Where the problem is Reporter phone, council page Days since reported
BloodLink A blood request Needed by Hospital Attendant phone (call/SMS), hospital page Time left to arrange blood
Lost & Found A lost or found item Date lost/found Where Owner/finder phone Days since posted
StudyBuddy A study session / deadline Session start or deadline Room / library Group leader, course page Time to the deadline
HealthMate An appointment / reminder Appointment time Clinic Clinic phone, clinic website Time to the appointment
CampusRide A ride offer Departure time Pickup point Driver phone (call/SMS) Time to departure
ThriftHub An item for sale Offer ends Meet-up point Seller phone / email Time left on the offer

Rules: one idea per group (2–3 students) in a class, or as your teacher decides. Your record must have a title, a date/time, a location and a contact – that is what makes every lab fit.

Where this unit sits

This unit is placed at the end of the course, after the final exam week, so the weekly lessons stay in order. But the project runs all semester: start Step 1 in week 5 and follow the "Finish by" column below.

How the steps fit the semester

Step Build Uses labs Finish by
1 Modern starter: theme, splash, preferences 1, 3, 10 Week 5
2 Main screen: toolbar menu, bottom navigation, fragments 5, 8 Week 6
3 Sign-in and registration screens 4, 7, 10 Week 7
4 Events list and detail: countdown, map, call, web, SMS, email 4, 6, 11–14 Week 8 (mid-term demo)
5 Add an event: pickers, current location, notification 6, 7, 15 Week 11
6 Profile, Feedback and About pages 2, 3, 6, 11, 13, 15, 17 Week 13
7 Supabase backend for your app Supabase week Supabase week
8 Connect the app to Supabase 12 + Supabase Week 15
9 Polish and test 7, 17 (theory) Week 16
10 Release APK, demo and submission 16 Week 17

Steps 1–6 work offline with sample data, so you can build and demo the whole app before the Supabase week. In Step 8 you replace one file (Repository.java) and the app becomes cloud-connected – this is the power of separating the presentation and data tiers.

Final architecture

app/src/main/java/pk/edu/uni/campuspulse/
├── CampusPulseApp.java      ← starts dynamic colour, dark mode, notification channel
├── Prefs.java               ← SharedPreferences (session, email, dark mode)
├── Util.java                ← toast, insets, intents (dial, browse, sms, email, map), location, time
├── Notifier.java            ← notifications
├── MainActivity.java        ← toolbar + menu + bottom navigation
├── AuthActivity.java        ← sign in
├── RegisterActivity.java    ← sign up form
├── EventDetailActivity.java ← countdown, map, call, web, SMS, email, delete
├── AboutActivity.java       ← WebView showing assets/about.html
├── ui/  HomeFragment, AddEventFragment, FeedbackFragment, ProfileFragment, EventAdapter
└── data/ Event, Feedback, SampleData, Repository (offline → Supabase), Auth, SupabaseApi, Network

Marking rubric (100)

Criterion Marks
All lab features present and working (see the table above) 30
Supabase data tier: tables, RLS policies, sign-up/sign-in, read/write from the app 20
UI/UX: Material 3, dark mode, consistent design, empty and error states, rotation safe 15
Code quality: packages, naming, no secrets in Git, comments where useful 10
Testing: test-case table filled in, tested on a real device 10
Release APK + 2-minute demo video + README 10
Viva: explain any part of your own code 5
Bonus (up to +10): Realtime updates, Storage photos, search, reminders, home-screen widget +10

Short and long questions

1. Project viva: Name six labs and the CampusPulse feature that uses each.

Model answer

Lab 4 – sign-in → register → main → detail activities with intents; Lab 5 – bottom navigation with four fragments; Lab 7 – registration form; Lab 10 – SharedPreferences for session and dark mode; Lab 12 – RecyclerView of events from the API; Lab 13 – countdown on the detail screen and feedback undo; Lab 14 – Open in Maps; Lab 15 – Use my location; Lab 6 – call/website and notification; Lab 11 – share by SMS/email; Lab 2 – About HTML page; Lab 16 – release APK; Lab 17 – feedback screen.

2. Explain the complete architecture of your course project with a diagram: screens, Repository, Retrofit, Supabase Auth, PostgREST, Row Level Security and the tables. Trace what happens when a user posts a new event.

Model answer

Presentation tier: AuthActivity, RegisterActivity, MainActivity with Home/Add/Feedback/Profile fragments, EventDetailActivity, AboutActivity. Data layer: Repository (Result callbacks via enqueue) → Retrofit SupabaseApi with an OkHttp interceptor adding apikey and the Bearer token, and an Authenticator that refreshes expired tokens. Cloud: Supabase Auth issues JWTs; PostgREST exposes /rest/v1/events and /feedback; PostgreSQL applies RLS with auth.uid(). Posting: AddEventFragment validates input, builds an Event (ISO time with offset, lat/lng) → Repository.addEvent(event, callback) → enqueue → POST /rest/v1/events with apikey + Authorization Bearer + Prefer: return=representation → JWT verified → insert policy checks auth.uid() = user_id (filled by default) → row saved and returned → Notifier shows "Event published" → Home reloads in onResume.

This lesson ends with a quiz of 3 MCQs. Open the lesson on PrepOasis to take it and save your progress.

Previous: Final Exam Revision and Exam Guide (Weeks 1–17) + Lab Final · Next: Project Step 1 – Modern Starter: Material 3 Theme, Splash Screen, Resources and Preferences (Labs 1, 3, 10)

All lessons in Mobile Application Development (CDE-315) – BS CS 5th Semester