Courses / Mobile Application Development (CDE-315) – BS CS 5th Semester
Project Step 10 – Release APK, Demo Video and Submission (Lab 16)
Course Project (Java) – Build a Modern Cloud App Step by Step (CampusPulse + 7 ideas) · 60 min read · 3 MCQs to check yourself
How to generate a signed APK in Android Studio
Goal
Build a signed release APK (Lab 16), install it on a real phone, record a short demo and submit your project.
10.1 Prepare the release
- In
app/build.gradle.kts→defaultConfig: setversionCode = 1andversionName = "1.0"(increase both for every new release). - Check the app name, icon (Image Asset) and that
local.propertieshas the publishable key only. - Optional (smaller APK): in
buildTypes { release { … } }setisMinifyEnabled = true. If the release build then crashes when reading JSON, add toproguard-rules.pro:
-keep class pk.edu.uni.campuspulse.data.** { *; }
-keepattributes Signature, *Annotation*
(R8 must not rename the fields Gson reads.)
10.2 Generate the signed APK
- Build → Generate Signed App Bundle or APK… → APK → Next.
- Create new… key store: path e.g.
D:\keys\campuspulse.jks, passwords, aliascampuspulse, validity 25 years, your name/organisation → OK. - Choose release → Create. The APK appears in
app/release/app-release.apk(Android Studio shows a locate link). - Keep the
.jksfile and passwords safe – every update must be signed with the same key. Never upload it to GitHub.
For the Play Store you would upload an App Bundle (.aab) instead and follow Play's testing rules; for this course an APK is enough.
10.3 Install on a phone
- Copy the APK to the phone (USB, Google Drive or WhatsApp document), open it, allow Install unknown apps for that app, install.
- Or with a USB cable and USB debugging on:
adb install app/release/app-release.apk. - Test the whole test-case table from Step 9 on the phone (real GPS, real SMS/email apps, real notifications).
10.4 What to submit
| Item | Details |
|---|---|
| Source code | GitHub repository (private or shared with the teacher) – local.properties and .jks not included |
README.md |
App idea, features table (lab → feature), screenshots, how to set SUPABASE_URL / SUPABASE_KEY, group members |
| Supabase SQL | The tables + policies you ran (supabase.sql) |
| APK | app-release.apk |
| Demo video | 2–3 minutes: sign up → list → detail (countdown, map, call) → post with location → notification → feedback → dark mode → sign-out; show the rows in Supabase |
| Test-case table | Step 9 table with Pass/Fail |
| Viva | Be ready to explain any file – e.g. "Why is user_id not sent by the app?", "What happens when the token expires?" |
10.5 Presentation tips
- Start with the problem your app solves, then the live demo, then the architecture slide (three tiers).
- Show one RLS proof: a second account cannot delete your event.
- Mention one level-up feature and one thing you would improve next.
🎓 Congratulations – you have built a modern, cloud-connected Android app that uses everything you learned this semester.
Short and long questions
1. Project viva: Explain the steps to create and install a signed release APK.
Model answer
Set versionCode/versionName; Build → Generate Signed App Bundle or APK → APK; create or choose a .jks key store with alias and passwords; choose release → Create; copy app-release.apk to the phone (or adb install) and allow Install unknown apps; keep the key store safe for future updates.
This lesson ends with a quiz of 3 MCQs. Open the lesson on PrepOasis to take it and save your progress.
All lessons in Mobile Application Development (CDE-315) – BS CS 5th Semester