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

Assignment 4 (Weeks 14–17) – Release-Ready Location App with Performance and Power Study

Week 17 – Performance, Power, Platform Constraints and Emerging Technologies · 600 min read

Assignment 4 – Release-Ready Location App with Performance and Power Study

Covers: Weeks 14–17 (threading, publishing, app stores and languages, mobility and location-aware apps, performance/power trade-offs and emerging technologies; Labs 14–17) CLOs: CLO-3 (compare performance trade-offs), CLO-4 (modern tools for complex problems), CLO-2 Type: Individual · Marks: 20 · Suggested due: Week 17 (before the final exam)

Part A – Practical (12 marks)

Extend your Campus Feedback App (Lab 17) or build a "Nearby Campus Places" app:

  1. Get the current location with the Fused Location Provider; let the user choose High accuracy or Battery saver (balanced) mode in Settings and use the matching Priority.
  2. Show a list of at least 6 campus places (hard-coded or from your Assignment 3 API) sorted by distance from the user (Location.distanceBetween), each with "Open in Maps" (geo:) and "Navigate" (google.navigation:).
  3. Perform the distance calculation and sorting on a background dispatcher (Dispatchers.Default) using coroutines; show progress.
  4. Add a "Sync later" feature: queue feedback/visits when offline and upload with WorkManager when the network is connected (or simulate upload with a log).
  5. Release build: set versionCode/versionName, enable R8 (minify + shrink resources), create a keystore, build a signed release APK and an AAB, install the APK on a real phone with adb install or file transfer.

Part B – Performance and power study (5 marks)

Using Android Studio Profilers (CPU, Memory, Energy/Power) or Battery usage in phone settings:

  1. Measure your app for 5 minutes with High accuracy updates every 2 s and then with Balanced updates every 60 s (or just one-shot location). Record CPU usage, memory and estimated energy. Present a table and a short conclusion on the performance vs power trade-off. (3)
  2. Compare debug vs release APK sizes using the APK Analyzer; explain the difference. (1)
  3. Show that your app does not run location updates in the background (stop in onPause) – screenshot of the profiler or logs. (1)

Part C – Short essay (3 marks, about 600 words)

Choose one: (a) "Native Kotlin vs Flutter for a Pakistani startup's delivery app", (b) "On-device AI vs cloud AI in mobile apps – performance, privacy and battery", (c) "Challenges of mobility and wireless communication for a rural health app". Use at least three references.

Deliverables

Project + signed APK + AAB (do not submit the keystore), profiler screenshots, data table, essay PDF.

Rubric

Criterion Marks
Location with selectable priority, distance-sorted list, map intents 4
Coroutines on correct dispatchers + WorkManager sync 3
Signed release APK/AAB, R8, installed on a phone 3
Code quality and graceful permission handling 2
Performance/power measurements and analysis 5
Essay 3

Previous: Week 17 Lab 17 – Campus Feedback App: Form, 10-Second Countdown, Current Location and Email · Next: Final Exam Revision and Exam Guide (Weeks 1–17) + Lab Final

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