Courier Proof-of-Delivery App on Android with Offline Sync and Secure Media

Build the Android app couriers use at the doorstep: Jetpack Compose screens that work with no signal, a Room outbox drained by WorkManager without duplicates, OAuth 2.0 sign-in with PKCE, CameraX barcode scanning and proof photos encrypted with Android Keystore keys, and a small AWS backend you deploy, verify and remove.

Android Developer. Advanced.

What you will build and explain

  • Explain how a delivery travels from the camera through Room and WorkManager to API Gateway, Lambda, DynamoDB and S3, and what happens at each step when the network fails.
  • Build Compose screens with view models and unidirectional data flow, Navigation 3 and adaptive layouts, and prove their accessibility with automated checks.
  • Sign drivers in with OAuth 2.0 and PKCE in a Custom Tab, keep tokens encrypted and refreshed, and end a session completely on a shared phone.
  • Design an offline outbox in Room, migrate it without data loss, sync it idempotently with WorkManager, and capture, strip, encrypt and upload proof media with minimal permissions.
  • Test the app on the JVM, measure start-up with a Baseline Profile and Macrobenchmark, ship a signed, shrunk release from CI, and deploy and remove the AWS backend with Terraform.

Before you begin

  • Kotlin with classes, data classes, sealed types, nullability, lambdas and collections; running an Android app from Android Studio on an emulator or phone
  • Terminal and Git use, editing Gradle, XML and shell files; HTTP methods, status codes, JSON and what an access token is; reading a short Terraform configuration
  • A computer with 16 GB of memory that can run Gradle, an Android emulator and Docker; an AWS account you may create resources in, a spending limit and a time window for the deployment

Curriculum

Learning topics (19)
  1. Understand the brief and prepare your tools

    Kestrel Parcels, a fictional regional courier, delivers about 1,200 parcels a day with 40 drivers, across city centres and rural routes. Its drivers record proof of delivery on company phones through a web form wrapped in an app, and it is failing them: in basements and dead zones the form cannot be sent, photos restart from zero after every interruption, a double tap records two deliveries, proof photos land in the shared gallery, and with large text the buttons overlap. You

  2. Follow one delivery from the doorstep to the office

    This chapter explains the whole system before the lessons take it apart. Read it once now and come back whenever a lesson mentions a part you have not met yet. It follows one parcel: the driver signs in, the route arrives, the driver proves the delivery at the door, and the proof reaches the office, possibly hours later.

  3. Screens as functions of state with Jetpack Compose

    A driver opens the route list in a basement with no signal, records a delivery, and walks back to the van. By then the stop row must say "saved on phone"; a minute later, without the driver touching anything, it must say "received by the office". Nothing on that screen calls the network or updates a label. How does the row change? This lesson answers that question with Jetpack Compose and the state model the whole app uses.

  4. Layers, modules and dependency injection

    The app has to draw screens, keep a database, call an API, encrypt files, sign drivers in and upload in the background. If every screen reached for the database and the network itself, a change to how tokens are refreshed would mean editing every screen. This lesson shows how the app is divided so that each of those jobs lives in one place, and how Hilt hands each class what it needs.

  5. OAuth 2.0 with PKCE, encrypted tokens and sign-out

    A driver picks up a shared phone at the depot and signs in. The app must never see the password, another app on the phone must not be able to sign in as the driver by intercepting the redirect, a token that expires mid-shift must be renewed without a prompt, and when the shift ends the driver's unsynced work must not be lost. This lesson shows how the app does all four with OAuth 2.0, PKCE and Amazon Cognito.

  6. A typed API client that fails predictably

    A courier's phone loses its connection in lifts, basements and between towers. When a call fails, the app has to know how it failed: worth trying again in a minute, the driver must sign in, or the server will never accept this request. This lesson builds the API client from Retrofit and OkHttp, shows how the access token travels with every call, and shows how the app and the backend are kept in agreement about every field.

  7. Room as the source of truth, migrations and DataStore

    A driver at a doorstep with no signal must still be able to record the delivery, and the record must survive the app being killed, the battery dying and the next app update. This lesson shows how the app stores the route and every delivery in SQLite through Room, writes a delivery atomically, changes the schema without losing a single row, and keeps small settings in DataStore.

  8. WorkManager, constraints and resumable uploads

    The delivery is safe in Room. Now it has to reach the office, even if the driver pockets the phone, Android stops the app to save battery, the phone reboots overnight, or the connection drops halfway through a photo. This lesson shows how WorkManager runs the upload when it can, and how each step is written so it can stop anywhere and simply continue later.

  9. CameraX, barcode scanning, signatures and photo processing

    At the doorstep the driver scans each parcel's label, takes a photo of the parcel at the door and, when the recipient is there, collects a signature with a finger. The camera must start fast and release itself when the driver leaves the screen, scanning must not freeze the screen, and the photo that leaves the phone must be small and must not carry the recipient's home coordinates hidden in its metadata. This lesson shows how.

  10. Keystore encryption, backups, location and data minimisation

    A courier's phone holds recipients' names, home addresses, photos of their front doors and their signatures, and the phone is shared between drivers, left in vans and occasionally lost. This lesson shows how the app limits what it collects, encrypts what it keeps with keys that never leave the phone, keeps data out of backups, screenshots and logs, and talks only HTTPS.

  11. TalkBack, large fonts, contrast and tablet layouts

    Couriers read their phones in sunlight, in gloves, with tired eyes at the end of a shift, and some use TalkBack or the largest font setting every day. Some depots mount tablets in vans. This lesson shows how the app's screens stay usable with a screen reader, at twice the normal text size, in bright light and on a tablet, and how tests check that on every build.

  12. Startup, Baseline Profiles, R8 and APK size

    Drivers open the app dozens of times a day, often on mid-range phones bought in bulk, and download updates over mobile data. A slow start costs seconds at every doorstep; a janky route list makes the wrong stop easy to tap; a large APK costs data. This lesson shows what the app does at start-up, how a Baseline Profile and R8 make the release build fast and small, and how each of those is measured rather than guessed.

  13. Unit, Compose, screenshot and migration tests

    A bug in this app is not a red banner in a browser: it is a delivery lost in a van, a driver signed out in a basement, or a recipient's address in a crash log. Most of those failures happen in conditions that are hard to reproduce by hand: a process killed mid-upload, a token expiring between two requests, a database from last month's release. This lesson shows how the project tests each risk on the JVM, in seconds, without an emulator, and what still needs a device.

  14. Cognito, HTTP API, Lambda, DynamoDB and S3

    The app needs a backend that signs drivers in, hands each driver their route, records deliveries exactly once even when the phone sends them three times, and accepts photos without letting anyone upload anything else. It must cost almost nothing while idle and be deletable in one command. This lesson walks one request through the AWS services that do that, and shows the decisions in the Terraform and the Python handler.

  15. Signing, Play App Signing and CI

    An app reaches drivers only as a signed package, and every update must be signed by the same identity, or Android refuses to install it over the old one. Lose the key and you can never update the app again; leak it and someone else can. This lesson shows how the release is signed without the key ever entering the repository, why Google Play holds the key that matters, how version numbers and backwards compatibility work for an app that stays on phones for months, and how a ha

  16. Deploy the backend and run the app against it

    This guide takes you from a fresh download to the app signing in through Cognito and uploading a delivery to your own AWS backend, then through a signed release build. Do the local part first: it costs nothing and proves the app, the backend code and your tools work before anything is billed. The AWS part creates real resources; finish with cleanup the same day.

  17. Troubleshoot the app from evidence

    Most problems in this system show up as something wrong with one delivery: it is stuck "saved on phone", it was refused, the office has a different record of it, or the app cannot even open to show it. The first useful question is always how far did this delivery get? The system is built so you can answer that for any single delivery, and the scenarios practise doing it. Start with the scenario list and pick a symptom.

  18. Explain Android decisions in an interview

    Building the project is half of being able to talk about it. The other half is explaining why each piece is there, what it costs and what it does not protect against, to someone who will push on every claim. The question list is organised by topic: the architecture as a whole, the app's structure, data and sync, security and privacy, and quality and delivery.

  19. Remove the backend and check for leftovers

    Everything deployment created in AWS belongs to this project and is named with your NAME_PREFIX. This page deletes it, checks that nothing is left, and tidies your computer. Run it the same day you deployed; nothing here touches resources you did not create with these scripts.

Practical build steps (7)
  1. Install the tools and create the wrapper

    Before any code runs, your computer needs a JDK, the Android SDK with an emulator, Docker, Python, the AWS CLI and Terraform, and the source needs its Gradle wrapper. Nothing is created in AWS in this milestone.

  2. Run the backend on your computer

    The backend's code runs in three containers: the API (the same handler as on Lambda), DynamoDB Local and Moto's server standing in for S3. You seed two synthetic drivers and check the API end to end. No AWS account is involved.

  3. Run the app locally and run the checks

    You install the local flavor on an emulator, sign in as a synthetic driver against the local backend, and record deliveries with and without a network. Then you run the same checks CI runs: JVM tests, screenshots and lint.

  4. Create the backend on AWS

    From here on, commands create billable resources. You choose your inputs, confirm which account your terminal reaches, and run one script that creates the Terraform state bucket, the backend (Cognito, API Gateway, Lambda, DynamoDB, S3, logs), two synthetic drivers and the app's settings.

  5. Verify the backend and sign in from the app

    You check the deployed backend the way the app uses it, then install the aws flavor and sign in through Cognito's page in a Custom Tab.

  6. Ship a change and build a signed release

    You change the backend and redeploy, then build a release the way you would for Google Play: shrunk by R8, signed with an upload key, within the size budget, with its mapping file kept. Optionally you run the CI workflow in your own repository.

  7. Remove the backend and check for leftovers

    You delete everything the deployment created, in the right order, confirm that nothing remains, and tidy your computer. Do this the same day you deployed.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

AWS usage is separate from project access. The backend is serverless and billed by use: a deployment, verification and cleanup session of two to three hours costs a few US cents, and nothing is billed by the hour while idle. The local backend, the app and the tests cost nothing. This is a learning reference, not a hosted lab or a production-readiness guarantee.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Third-party components downloaded when building, such as AndroidX, Kotlin libraries, OkHttp, Retrofit, ZXing, Gradle and boto3, retain their own licences, and the Android SDK is subject to Google's licence, which you accept yourself. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy