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

  1. In app/build.gradle.kts → defaultConfig: set versionCode = 1 and versionName = "1.0" (increase both for every new release).
  2. Check the app name, icon (Image Asset) and that local.properties has the publishable key only.
  3. Optional (smaller APK): in buildTypes { release { … } } set isMinifyEnabled = true. If the release build then crashes when reading JSON, add to proguard-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

  1. Build → Generate Signed App Bundle or APK… → APK → Next.
  2. Create new… key store: path e.g. D:\keys\campuspulse.jks, passwords, alias campuspulse, validity 25 years, your name/organisation → OK.
  3. Choose release → Create. The APK appears in app/release/app-release.apk (Android Studio shows a locate link).
  4. Keep the .jks file 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

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

🎓 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.

Previous: Project Step 9 – Polish and Test: Errors, Rotation, Dark Mode, Accessibility, Battery and Test Cases

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