Android Developer Skill Matrix
Builds native Android apps for phones, tablets and foldables in Kotlin: Compose and View interfaces, coroutines, networking and data, testing, performance, security, Google Play release, and the AI-assisted and AI-feature practices around them.
Free for teams of up to 5 people. No credit card required.
One growth tree. Three clear positions.
This matrix connects 34 knowledge areas to clear expectations for Junior, Middle and Senior positions. 393 practical exercises show how that growth can be demonstrated.
A practical framework from expectations to evidence
The knowledge areas define the skills required for this role. Position requirements show the proficiency expected at each career step, and the exercises provide concrete ways to practise and demonstrate those skills.
- 34
- Knowledge areas
- 393
- Practical exercises
- 2
- Skill groups
- 01
Junior
Expected proficiency mapped across 30 of 34 knowledge areas.
- 02
Middle
Expected proficiency mapped across 34 of 34 knowledge areas.
- 03
Senior
Expected proficiency mapped across 34 of 34 knowledge areas.
Explore every knowledge area
Technical Skills
01Kotlin
Writing idiomatic Kotlin for Android: null safety, data and sealed types, extension and scope functions, generics, collections, delegation, and Java interop (nullability, annotations, reading legacy Java).
TargetNovice
Kotlin
Writing idiomatic Kotlin for Android: null safety, data and sealed types, extension and scope functions, generics, collections, delegation, and Java interop (nullability, annotations, reading legacy Java).
Learn how null safety, data classes and scope functions work in everyday Kotlin
Read four pages of the Kotlin docs: 'Null safety', kotlinlang.org/docs/null-safety.html, on nullable types, safe calls, the Elvis operator, smart casts and what the page says about `!!`; 'Data classes', kotlinlang.org/docs/data-classes.html, on what the compiler generates from the primary constructor and why `copy()` is shallow; and 'Scope functions', kotlinlang.org/docs/scope-functions.html, on `let`, `run`, `with`, `apply`, `also` and the page's warning about overuse; and 'Properties', kotlinlang.org/docs/properties.html, its section on late-initialized properties (what `lateinit` promises and what happens if you read it too early). If you have not written Kotlin before, first do the browser-based Kotlin tour, kotlinlang.org/docs/kotlin-tour-welcome.html. Then pick one Kotlin file of 50 to 150 lines from your real or test project that holds model or ViewModel code. A new Empty Activity (Compose) project has none, so there write a 30-line file with a data class that has one nullable property and a function that uses one scope function. Annotate the file: mark every nullable type and how the code handles it (safe call, Elvis, smart cast, check, `!!`), every `!!` or `lateinit` and whether it can fail, every data class and which properties its `equals` compares, and every scope function with why that one and not another. Pick one line you would rewrite and show the rewrite. Evidence: the annotated file (a PR comment, gist or screenshot), your one rewrite, and your mentor's comments.
Build a spending summary from a list with collections, when and tests
On a real or test project, take a well-scoped ticket that turns a list into a summary and build it on your own, e.g. 'total per category and the three biggest expenses', or the same for tasks per status. In a new project use `data class Expense(val id: Long, val title: String, val amountCents: Long, val category: Category?)`, an enum `Category`, and a few expenses with no category. Put the logic in a plain Kotlin function such as `summarize(expenses: List<Expense>): List<CategoryTotal>` with `CategoryTotal` as a data class. Use the standard collection operations (`filter`, `groupBy`, `sumOf`, `sortedByDescending`, `take`; see 'Collection operations', kotlinlang.org/docs/collection-operations.html, and its pages kotlinlang.org/docs/collection-grouping.html, kotlinlang.org/docs/collection-ordering.html, kotlinlang.org/docs/collection-parts.html and kotlinlang.org/docs/collection-aggregate.html), handle the missing category with `?.` or `?:` and no `!!`, turn each category into its label with a `when` expression that needs no `else` branch, and use one scope function where it reads better than the alternative, not everywhere. Apply your notes from the exercise above. Write at least four JUnit tests in the module's `src/test/java` folder (see 'Build local unit tests', developer.android.com/training/testing/local-tests), including an empty list and an expense with no category, and show the summary on a screen if your ticket asks for it. Evidence: a link to the merged PR (on a project with no pull requests, the commit or diff your mentor reviewed), the passing test run (a screenshot of the Run window), a note listing where the code uses a data class, a nullable type, a collection operation, a `when` and a scope function and why, plus one lambda you wrote or passed and what it captures or returns, and your reviewer's comments.
Call Java from Kotlin and write a generic class, with help on what surprises you
Use a Java class from Kotlin, then write one generic class, and get help where Kotlin's rules surprise you. In your test project add `UserDirectory.java` under `app/src/main/java` with `public String nickname(long id)` that returns a name for id 1 and null for an id it does not know (no annotation) and `@Nullable public String email(long id)` using `androidx.annotation.Nullable` (dependency: developer.android.com/jetpack/androidx/releases/annotation). On a real project use an existing Java class with a method that can return null instead. Read the 'Null-safety and platform types' section of kotlinlang.org/docs/java-interop.html first (the docs write a platform type as `String!`). In Kotlin: (1) assign `nickname(1)` and `nickname(99)` to `val n: String` and run it, noting where and how it fails; (2) call `email(1)`, see what type the IDE shows, and handle the null without `!!`; (3) write `data class Page<T>(val items: List<T>, val nextCursor: String?)` and a function that returns the first item of a `Page<T>` or null, and use it with two item types; (4) try `val strs = mutableListOf("a"); val objs: MutableList<Any> = strs`, which does not compile. Ask your senior developer (on a test project, your mentor) to explain the failure in (1) and the error in (4), then read the 'Variance' section of kotlinlang.org/docs/generics.html and write both explanations in your own words. Evidence: the code, the run output of (1), the compiler error of (4), your two explanations, who helped and what they told you, and your mentor's comments.
02App architecture & design patterns (Android)
How an Android app is structured and its code designed: UI, domain and data layers, MVVM and MVI, Hilt, Gradle modularization, navigation, app-wide state, SOLID and common patterns, functional and reactive style, system design.
TargetNovice
App architecture & design patterns (Android)
How an Android app is structured and its code designed: UI, domain and data layers, MVVM and MVI, Hilt, Gradle modularization, navigation, app-wide state, SOLID and common patterns, functional and reactive style, system design.
Learn which layer and module each class of a screen belongs in
Read Google's 'Guide to app architecture', developer.android.com/topic/architecture, on the UI layer, the data layer, the optional domain layer and unidirectional data flow (state flows down, events flow up), then the 'UI layer' guide, developer.android.com/topic/architecture/ui-layer, on UI state, state holders and the difference between business logic and UI logic. Then take one existing screen of a real or test project (on a test project, the For You screen of the Now in Android sample, github.com/android/nowinandroid) and list every class it uses: composable, ViewModel, UI state class, use case if any, repository, data source, model. For each write its layer, the Gradle module it lives in, what it depends on, and where its data comes from. Trace one user tap from the composable to the data and back to the screen. Mark one piece of logic (e.g. a click handler, a date format, a filter) and say whether it is business logic or UI logic and why. If the project has a single module, say so and note which package plays each layer. Evidence: the list and the traced tap (a PR comment, gist or screenshot) and your mentor's comments on it (hide names; use roles such as 'mentor').
Add a screen in the project's architecture and have its placement reviewed
On a real or test project, take a well-scoped ticket that adds one screen backed by data the app already has (e.g. a read-only list of saved items; on Now in Android, a read-only screen listing only the topics the user follows, from the existing topics and user-data repositories, as a new destination next to Interests: do not copy Interests, build it from your layer list; run the demoDebug variant, which uses local static data per the README). Build it on your own the way the project's other screens are built, using your list from the exercise above: a composable that takes state and lambdas, a ViewModel that exposes one UI state class (everything the screen shows) as a StateFlow, data only through a repository (never a DAO or API client in the ViewModel), dependencies through the project's dependency injection (the app gives each class what it needs instead of the class creating it; use constructor injection, no hand-made instances), and a destination added to the existing navigation the way the others are. Before you open the PR, write one line per new class: its layer, its module and why. Ask your reviewer to check placement against the 'UI layer' guide, developer.android.com/topic/architecture/ui-layer (no business logic in a composable), and misuse against 'Recommendations for Android architecture', developer.android.com/topic/architecture/recommendations (e.g. a Context in a ViewModel, a ViewModel in a reusable composable) and 'UI events', developer.android.com/topic/architecture/ui-layer/events (do not pass a ViewModel down to a list composable), and fix what they find. On a View-based project the screen is a Fragment with a ViewModel; the layer rules are the same. Evidence: a link to the merged PR, the per-class note, a recording of the screen including a rotation, and your reviewer's comments on placement and misuse with what you changed (hide names; use roles such as 'reviewer').
Learn where the observer, builder, repository and delegation patterns appear in your code
Read 'Kotlin flows on Android', developer.android.com/kotlin/flow, on producers, intermediaries and consumers (the observer pattern: 'Recommendations for Android architecture' says ViewModels expose UI state 'using the observer pattern'); the 'Delegation' page, kotlinlang.org/docs/delegation.html, on the by clause for classes; the 'Delegated properties' page, kotlinlang.org/docs/delegated-properties.html, on lazy and observable properties; and Refactoring Guru's 'Builder' page, refactoring.guru/design-patterns/builder, on building a complex object step by step. Then, in your real or test project, find one place for each of four patterns and write down where it is and what it does: observer (a Flow collected in a ViewModel, or a listener), builder (e.g. OkHttpClient.Builder or a notification builder), repository (a class that hides data sources from its callers) and delegation (a class implementing an interface by an object, or a property delegate such as by lazy). If a pattern doesn't exist in your code, your mentor points you to one in the Now in Android sample, github.com/android/nowinandroid, instead. Evidence: your four-line table with code locations and your mentor's comments on whether each place really is that pattern (hide names; use roles such as 'mentor').
Use the patterns your codebase already uses: observer, builder, repository, delegation
Using your four-line table from the exercise above, do a small ticket in your real or test project that uses at least two of the patterns, whichever your code already has: e.g. add a function to a repository that exposes a Flow and map it in the ViewModel, configure a client through its builder, or reuse an existing implementation with by instead of copying it. Follow the existing code's shape rather than inventing a new one. Evidence: a link to the merged PR, which two patterns you used and why they were the right fit, and your reviewer's comments on how you applied them (hide names; use roles such as 'reviewer').
03Jetpack Compose
Building screens in Jetpack Compose: composables, state hoisting, recomposition and stability, side effects, lazy lists, Material 3 theming, navigation mechanics, previews, and interop with Views.
TargetNovice
Jetpack Compose
Building screens in Jetpack Compose: composables, state hoisting, recomposition and stability, side effects, lazy lists, Material 3 theming, navigation mechanics, previews, and interop with Views.
Learn where each piece of state in a Compose screen should live
Read two Android guides: 'State and Jetpack Compose', developer.android.com/develop/ui/compose/state, on remember, rememberSaveable, mutableStateOf, why a mutable list changed in place doesn't update the screen, and passing state down with changes going up; and 'Where to hoist state', developer.android.com/develop/ui/compose/state-hoisting, on moving state to the lowest common ancestor of the composables that use it and on when it belongs in a ViewModel. Then pick one screen in a real or test project that has both small UI state and loaded data (e.g. a form with a text field and a list below it; if your app has no Compose yet, use a new Empty Activity (Compose) project from Android Studio and give its screen those two things) and annotate its code: for every value the screen holds, write where it lives now (a local variable, remember, rememberSaveable or a ViewModel), which composables read it, which ones change it, and whether it survives a screen rotation. Mark one value you would move and say why. Evidence: the annotated code (a PR comment, gist or screenshot) and your mentor's comments on it.
Build a ticket's list screen in Compose with state in a ViewModel
On a real or test project, take a well-scoped ticket that adds one screen with a list and a way to change it (e.g. a shopping list with an add field and a checkbox on each row, or saved articles with a delete button) and build it in Compose on your own. If you haven't built a lazy list before, first work through the 'Jetpack Compose basics' codelab, developer.android.com/codelabs/jetpack-compose-basics. Show the rows in a LazyColumn with Material 3 components (e.g. Scaffold, ListItem or Card, TextField, Button). Keep each value where your notes from the exercise above say it belongs: hold the list in a ViewModel as an immutable List inside a StateFlow that the screen collects with collectAsStateWithLifecycle, and split the screen into a stateful composable that talks to the ViewModel and a stateless one that only takes values and lambdas. Add @Preview functions for the stateless one (an empty list, a long list, one row with very long text) using Android's Compose previews guide, developer.android.com/develop/ui/compose/tooling/previews, then run the screen at the largest font size and in dark theme. Evidence: a link to the merged PR, screenshots of the three previews, a short note on where each value lives and why, and your reviewer's comments.
Show a snackbar from your list screen and fix a recomposition surprise with help
Extend the list screen from the exercise above: when the user adds an item, show a Snackbar saying so. Treat it as a one-off event: the ViewModel exposes the message in its state, the screen shows it with a SnackbarHostState from a LaunchedEffect (or from a coroutine started with rememberCoroutineScope in a click handler) and tells the ViewModel once it was shown. Read 'Side-effects in Compose' first, developer.android.com/develop/ui/compose/side-effects, on LaunchedEffect and rememberCoroutineScope. Then turn on recomposition counts in the Layout Inspector (Android Studio, API 29 or higher; see 'Debug your Compose UI', developer.android.com/develop/ui/compose/tooling/debug), type in the add field and note which composables recompose or skip. Surprises are normal here: a Snackbar that shows again after rotation, a row that recomposes on every keystroke, a list that doesn't update after an add. When one stops you for about half an hour, ask a senior developer (on a test project, your mentor), fix it with them and write down the cause in your own words. If you hit none, ask your mentor to plant one in a copy of your branch (e.g. the Snackbar call moved into the composable body, or the list changed in place in the ViewModel) and find it, asking for help when stuck. Evidence: a link to the merged PR, a recording of the Snackbar flow including a rotation, the Layout Inspector counts before and after typing, the surprise you got help with, its cause, its fix and who helped, and your reviewer's comments.
04Android Views & Fragments
Building and fixing screens with the View system: XML layouts and ConstraintLayout, RecyclerView with DiffUtil, ViewBinding, Fragments and the back stack, custom views, and interop with Compose.
TargetNovice
Android Views & Fragments
Building and fixing screens with the View system: XML layouts and ConstraintLayout, RecyclerView with DiffUtil, ViewBinding, Fragments and the back stack, custom views, and interop with Compose.
Learn how a View screen's layout, list and fragment fit together
Read four Android guides: 'Build a responsive UI with ConstraintLayout', developer.android.com/develop/ui/views/layout/constraint-layout, on constraints (every view needs at least one horizontal and one vertical constraint; with none it is drawn at the top-left corner, with no vertical one it sits at the top; match constraints is 0dp, not match_parent); 'Create dynamic lists with RecyclerView', developer.android.com/develop/ui/views/layout/recyclerview, on the adapter, view holder and layout manager and what onCreateViewHolder, onBindViewHolder and getItemCount do; 'View binding', developer.android.com/topic/libraries/view-binding, on binding classes and clearing the binding in a fragment's onDestroyView; and the Fragment lifecycle guide, developer.android.com/guide/fragments/lifecycle, on the view's own lifecycle (onViewCreated, onDestroyView, viewLifecycleOwner). Then take one existing View-based screen with a list in a real or test project and annotate it. On a test project, create a project from the Views-based template in File > New > New Project (not the Compose 'Empty Activity' one), set viewBinding = true under buildFeatures (View binding page), add androidx.recyclerview:recyclerview and androidx.fragment:fragment-ktx (developer.android.com/guide/fragments/create), and build a list Fragment with a RecyclerView whose row is a ConstraintLayout with an icon, a title and a subtitle, following the RecyclerView guide for the adapter. Annotate: the root view and how three of its views are constrained; which class is the adapter, which the view holder and which the layout manager, and what each adapter method does; where the binding is created and cleared and where the adapter is attached. Mark one thing you don't understand yet. Evidence: the annotated code or screenshots and your mentor's comments on them (hide names; use roles such as 'mentor').
Extend a list row and fix a layout bug in an existing View screen
On a real or test project, take a well-scoped ticket on a View-based list screen: add one field to every row (e.g. a subtitle line, a date or a checkmark) and fix one layout bug in the row layout (e.g. text overlapping the icon at the largest font size, or a view drawn at the top instead of where it belongs). On a test project, build the list from the exercise above and ask your mentor to seed the bug by deleting one view's vertical constraint, which the ConstraintLayout guide says makes it appear at the top instead of where you placed it (a view with no constraints at all is drawn at the top-left corner). Do the work on your own: change the row XML in ConstraintLayout (constraints on both axes, 0dp where the view should fill the space, no match_parent), set the new field in onBindViewHolder and read views through the binding class if the module uses view binding, otherwise follow the project's existing style. If the layout bug stops you for about half an hour, ask a senior developer (on a test project, your mentor) and write down what you asked, what they pointed you to and what you changed; if you solve it without help, your mentor gives you a second seeded constraint bug in another layout and you work through it with them. Check portrait, landscape and the largest font size in the device's display settings. Evidence: a link to the merged PR, before and after screenshots of the three conditions (hide names and any personal data), the cause of the layout bug in one sentence, who helped and with what, and your reviewer's comments (use roles, not names).
Open a detail Fragment from the list and fix a lifecycle problem with help
Extend the list screen from the exercise above: tapping a row opens a detail Fragment (title and subtitle) and Back returns to the list. Read the 'Fragment manager' guide, developer.android.com/guide/fragments/fragmentmanager, first, on transactions and the back stack. Use the project's navigation if it has one; otherwise commit a transaction with replace, setReorderingAllowed(true) and addToBackStack. Rotate on the detail screen, press Back, open another row, and check the data and that nothing crashes. A lifecycle problem is likely (e.g. the binding used after onDestroyView, state lost after rotation, an observer attached to the wrong lifecycle). When one stops you for about half an hour, ask a senior developer (on a test project, your mentor), fix it with them and write the cause in your own words. If you hit none, ask your mentor to plant one in a copy of your branch: an observer in the list Fragment (the one that goes onto the back stack) attached with the fragment's lifecycle instead of viewLifecycleOwner in onViewCreated, with a log line or Toast on every emission, so that opening a row and pressing Back should make it fire twice (check that it does); or the binding not cleared in onDestroyView, which only keeps the destroyed view from being garbage collected, so record what you observed, including if nothing visible happened. Find it with their help. Evidence: a link to the merged PR, a recording of list, detail, Back and a rotation, the problem you got help with, its cause, its fix and who helped, and your reviewer's comments (hide names; use roles such as 'senior developer' and 'reviewer').
05Material Design & design handoff
Applying Material 3 and Android platform conventions, implementing from Figma, pushing back on non-native designs, and building localization-ready UI: string resources, plurals, locale-aware formatting, RTL-safe layout.
TargetNovice
Material Design & design handoff
Applying Material 3 and Android platform conventions, implementing from Figma, pushing back on non-native designs, and building localization-ready UI: string resources, plurals, locale-aware formatting, RTL-safe layout.
Learn how a design maps to Material 3 roles, dp and sp, and string resources
Read three Android pages: the theming sections ('Material theming', 'Color scheme', 'Typography', 'Shapes') of developer.android.com/develop/ui/compose/designsystems/material3, on color roles such as primary, on-primary-container and surface, the type scale (display, headline, title, body, label) and the shape scale; 'Grids and units', developer.android.com/design/ui/mobile/guides/layout-and-content/grids-and-units, on dp, sp, the 8dp grid and the 4dp grid for icons and type; and 'Manage strings for localization' in developer.android.com/guide/topics/resources/localization, on moving every user-facing string into strings.xml. Then take one screen of a design file and write a map for it. You bring the design: your designer's file, or a public one such as the Now in Android Figma sample linked from developer.android.com/design/ui/mobile/guides/styles/color (check on its Figma page whether you can open and duplicate it, and use the next option if not); on a test project your mentor plays the designer and hands you one screen with its specs. For each element write its spacing in dp, its text style as a Material type role with the size in sp, its color as a color role (not a hex value), the Material component or icon it becomes, and a name in strings.xml for each piece of text. Mark every value that matches no role, scale or component. Evidence: the map and your mentor's comments on the marked values.
Build one screen from a design file with Material components and string resources
Using your map from the exercise above, build that screen on your own in a real or test project (a new Empty Activity (Compose) project is enough): spacing from your dp column, text from `MaterialTheme.typography` roles, colors from `MaterialTheme.colorScheme` roles (put the design's color roles into your `lightColorScheme`, and if the generated theme uses dynamic color, set `dynamicColor = false` while you match the design), Material 3 components (e.g. `Scaffold`, `TopAppBar`, `Card`, `Button`, `ListItem`), Material icons (`Icons.Default`; if the design names one that is missing there, use Android Studio's Import vector asset, see developer.android.com/develop/ui/compose/resources), and every user-facing string, content descriptions included, from strings.xml through `stringResource`. Hex values in the design go through the theme, never into composables. On a View project do the same in XML with theme attributes such as `?attr/colorPrimary` and `@string` references. Add an @Preview and put a screenshot of it next to the design frame at the same width (412dp is the compact frame the guide developer.android.com/design/ui/mobile/guides/foundations/translate-designs uses; also check 360dp). Then search your code for quoted text in composables, `Color(0x` and sp or dp values that are not in your map, and fix what you find. Evidence: a link to the PR (on a project with no pull requests, the commit or diff your mentor reviewed), the side-by-side screenshot, the search results before and after, a list of deviations from the design with a reason for each, and your reviewer's comments.
Ask the designer about what the design leaves open and record the answers
Go back through the screen you built and list everything you cannot build without a decision, at least three items, whichever the design has: a color that matches no role in your scheme, a spacing off the 4dp and 8dp grid, an icon with no Material equivalent, text that does not fit at 360dp or the largest font size, a missing empty or loading state, a control that is not a Material component. If the design answers everything, ask your mentor (playing the designer) for a copy of one screen with a color, a spacing and a state left out. Ask the designer about each item in writing (on a test project, your mentor), with a screenshot of the spot, your proposal (e.g. use `surfaceVariant`, round to the 8dp grid, use the nearest Material icon) and what you will build if they do not answer. Do not guess silently, and do not leave the whole screen waiting: build the rest meanwhile. Then apply the answers and keep the questions in the PR description. Hide names and account details in anything you hand in. Evidence: the question list with the designer's answers (or the default you built), a link to the PR with the changes (or the commit or diff your mentor reviewed), and your reviewer's comments on whether the questions were specific enough.
06Platform compatibility & adaptive UI
Making an app work across Android's range of OS versions, screens and manufacturers: minSdk and targetSdk, per-release behavior changes, API checks, window size classes, tablets and foldables, edge-to-edge, device-matrix testing.
TargetNovice
Platform compatibility & adaptive UI
Making an app work across Android's range of OS versions, screens and manufacturers: minSdk and targetSdk, per-release behavior changes, API checks, window size classes, tablets and foldables, edge-to-edge, device-matrix testing.
Learn what minSdk, targetSdk and compileSdk each control
Read three short pages: the `<uses-sdk>` manifest reference, developer.android.com/guide/topics/manifest/uses-sdk-element (the minSdkVersion and targetSdkVersion entries), the Android Gradle plugin's compileSdk reference, developer.android.com/reference/tools/gradle-api/com/android/build/api/dsl/CompileSdkSpec, and Google's target API level requirements for Google Play, developer.android.com/google/play/requirements/target-sdk. Then open the module-level build file of a real or test project (a new Empty Activity project from Android Studio is enough) and write a short note for that project: the current value of each of the three settings and where you found it (in recent projects they can sit in a version catalog or a convention plugin instead of the app module); what each one changes (what the code can compile against, which devices can install the app, which newer-version behaviors the system applies to it); which API level the Play page says new apps and updates must target and from what date; and which of your three values would have to change to meet it. Evidence: the note, a screenshot of the build lines you read (nothing secret in them), and your mentor's comments.
Run on two emulators and guard a call that needs a newer API
Using the note from the exercise above, run one flow of your project (e.g. open the main screen, scroll a list, rotate the device) on two emulators: one at your minSdk's API level and one at the newest API level your Android Studio offers (View > Tool Windows > Device Manager, then + > Create Virtual Device; download the system images you need). Then find one call in your code that needs a newer API level than your minSdk: run `./gradlew lint` and look for NewApi findings. If there are none, on a test project set minSdk to 24 and add `window.isNavigationBarContrastEnforced = false` to your activity's onCreate (it needs API 29, and your compileSdk must be 29 or higher). Guard the call with `if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { ... }`, as in the 'Check system version at runtime' section of developer.android.com/training/basics/supporting-devices/platforms, or use the AndroidX compat version of the API when one exists (e.g. WindowCompat), then run lint again. Add a `Log.d` line in each branch (one saying the call ran, one saying it was skipped) and confirm in Logcat on the older emulator that only the skipped line appears and the app does not crash. Do not hide the finding with @SuppressLint. Evidence: a link to the PR, the lint output before and after (the NewApi line gone), screenshots of both emulators with the API level visible, and your reviewer's comments.
Explain a behavior difference between two Android versions with help
Run the same screen of your project on two emulators with different API levels (the ones from the exercise above) and look for something that looks or behaves differently, e.g. the area behind the status bar, a permission prompt, a dialog's look or a notification. Take the first difference you cannot explain to a senior developer (on a test project, your mentor) and write down what you saw on each version, what caused it according to them, and the developer.android.com page that confirms it (start from the behavior-changes pages, e.g. developer.android.com/about/versions/15/behavior-changes-15 for apps targeting 35). Only explain it here; fixing such differences is Advanced work. If the two emulators show no difference, ask your mentor to set one up: in a copy of your branch set targetSdk to 34 (and remove the `enableEdgeToEdge()` call from the activity if there is one), then run it on an emulator with API 35 or higher next to a build with targetSdk 35; the Android 15 page says apps targeting 35 are edge-to-edge there, so the two builds draw differently. Hide account details in screenshots. Evidence: screenshots of both versions, the difference in one sentence, its cause with the page, who helped and what you asked them.
07Animation & graphics (Android)
Adding motion and custom graphics to Android apps: Compose animation APIs, transitions and predictive back, Canvas drawing, Lottie, smooth frame rates, and respecting the animator duration scale (reduce motion).
TargetNovice
Animation & graphics (Android)
Adding motion and custom graphics to Android apps: Compose animation APIs, transitions and predictive back, Canvas drawing, Lottie, smooth frame rates, and respecting the animator duration scale (reduce motion).
Learn which animation API fits which job, and what turns animations off
Read 'Choose an animation API', developer.android.com/develop/ui/compose/animation/choose-api (its decision tree: AnimatedVisibility, animate*AsState, animateContentSize, updateTransition, Animatable, rememberInfiniteTransition, AnimatedContent), then the reference for ValueAnimator.areAnimatorsEnabled(), developer.android.com/reference/android/animation/ValueAnimator (API 26 and higher: animators are off system-wide when the Developer option sets the animator duration scale to 0 or when Battery Saver is on), and the MotionDurationScale reference, developer.android.com/reference/kotlin/androidx/compose/ui/MotionDurationScale (the multiplier Compose applies to motion: 10 makes a 100 ms animation take 1,000 ms, and 0 makes the motion end in the next frame callback; on Android Compose takes this multiplier from the system animator duration scale). Also read the Espresso setup page, developer.android.com/training/testing/espresso/setup, which names the three Developer options (Window animation scale, Transition animation scale, Animator duration scale). Then take one screen of a real or test project (a new Empty Activity (Compose) project with a list and a detail area is enough) and write down three places where motion would help the user (e.g. a banner that appears, a card that expands, a value that changes color), and for each the API from the decision tree, a duration you would try and the reason, and what you predict will happen when the animator duration scale is 0, using what you read. Evidence: the list and your mentor's comments on it.
Add two standard animations and check them at other animation speeds
On a real or test project, add two animations to the screen from your list in the exercise above, using the APIs you chose (e.g. AnimatedVisibility for a banner and animateContentSize or animateColorAsState for a card). On a View-based project use the animation APIs the project already uses. Set the durations you wrote and ask your reviewer (on a test project, your mentor) what timing feels right and why; write down their guidance and what you changed. Then check the animator duration scale: slow the animations down with adb shell settings put global animator_duration_scale 10 (as the Material motion codelab, developer.android.com/codelabs/material-motion-android, does; it also scales window and transition animations), watch both animations and note anything that looks wrong, then set it to 0 in Developer options (Settings > Developer options > Animator duration scale) and note what each animation does. Set it back with adb shell settings put global animator_duration_scale 1. Evidence: a link to the merged PR (on a project with no pull requests, the commit or diff your mentor reviewed), a recording of both animations, your notes at scale 10 and at 0 and whether they match your prediction, the timing guidance you got, and your reviewer's comments.
Draw a simple graphic with Canvas and check that it stays smooth
On a real or test project, draw a small graphic with a Canvas composable, following 'Graphics in Compose', developer.android.com/develop/ui/compose/graphics/draw/overview (the DrawScope, drawCircle, drawArc and drawLine, sizes in pixels so convert dp with toPx, and Modifier.drawWithCache for objects such as a Path): e.g. a progress ring that shows a percentage, or a five-star rating. In a View project, draw in a custom View's onDraw and animate one value with a ValueAnimator instead. Make one value in it animate (animateFloatAsState for the sweep angle). Then check smoothness; frame-time measurement and system traces are covered in Performance & memory, so keep this directional and use only the on-screen bars. Enable Developer options (on a phone, tap Build number seven times; developer.android.com/studio/debug/dev-options shows where it is), then choose Profile GPU Rendering > On screen as bars (named Profile GPU Rendering or Profile HWUI rendering depending on the Android version, per developer.android.com/topic/performance/rendering/inspect-gpu-rendering) and watch while the value animates: bars above the green 16.67 ms line mean the animation may pause. If you have no low-end device, borrow one for ten minutes, or make the graphic four times heavier (four times as many elements) and see whether it still animates evenly. Evidence: a link to the merged PR (on a project with no pull requests, the commit or diff your mentor reviewed), a screenshot at two values, a screenshot or recording with the bars on, what you changed after looking, and a note that emulator timings show direction only.
08Accessibility (Android)
Making Android apps usable with assistive technology: TalkBack, Compose semantics and content descriptions, touch-target size, font scaling, contrast, focus order, and testing with Accessibility Scanner and real assistive features.
TargetNovice
Accessibility (Android)
Making Android apps usable with assistive technology: TalkBack, Compose semantics and content descriptions, touch-target size, font scaling, contrast, focus order, and testing with Accessibility Scanner and real assistive features.
Learn what TalkBack says and what makes a control reachable and readable
Read 'Make apps more accessible', developer.android.com/guide/topics/ui/accessibility/apps, on contrast ratios, the 48dp touch target and content descriptions (describe the purpose, no word like 'button', decorative images get null, each list item unique), then the TalkBack and Accessibility Scanner parts of 'Test your app's accessibility', developer.android.com/guide/topics/ui/accessibility/testing, and the non-linear font scaling section of developer.android.com/about/versions/14/features (text sizes in sp, test at the largest font size). Then take one screen of your own in a real or test project (e.g. a login form or a list with an add button; on a test project a new Empty Activity (Compose) project screen with an icon button, a text field and a list is enough) and, before testing anything, write a table with one row per interactive element: what TalkBack should say, its touch target size in dp, and whether its text is in sp. On a View-based project use the Views version of the first page, developer.android.com/guide/topics/ui/accessibility/views/apps-views. Evidence: the table (a PR comment or gist) and your mentor's comments on whether the predicted announcements are right.
Make a screen work with TalkBack and a large font size
Access: a physical Android device, or an emulator image with Google Play where the Android Accessibility Suite is installed (the 'Accessibility in Jetpack Compose' codelab, developer.android.com/codelabs/jetpack-compose-accessibility, says an emulator needs it). Without either, do the semantics part below with the tree printed from a test (printToLog on onRoot, see developer.android.com/develop/ui/compose/accessibility/semantics, 'Inspect the tree'), take the font screenshots on any emulator, and ask your mentor to run TalkBack on their device over your build and write down what it says. Using your table from the exercise above, on your own: add a contentDescription (from a string resource) to each icon button, give decorative images null, make every tap target at least 48dp (e.g. Modifier.sizeIn(minWidth = 48.dp, minHeight = 48.dp) on custom controls), and use sp for text. Turn on TalkBack (Settings > Accessibility > TalkBack), swipe through every element, and compare what you hear with your prediction. Set Font size to the largest setting (Settings > Accessibility > Display size and text; Android 14 and higher go up to 200%) and fix text that is cut off or overlaps. Evidence: a link to the merged PR, your table with a heard column, a screenshot at the largest font size before and after (hide personal data), and your reviewer's comments.
Scan with Accessibility Scanner and get help with a custom control
Access: Accessibility Scanner runs on a phone or tablet with Android 9 or later and installs from Google Play (see support.google.com/accessibility/android/answer/6376570), so use a device or a Google Play emulator image; if it will not install or you have neither, use UI Check mode on a Compose preview in Android Studio (it highlights issues such as low contrast) or, on a View-based project, lint and the Layout Editor's error report button (developer.android.com/guide/topics/ui/accessibility/views/testing-views), and say that this replaces the scanner. Open the screen from the exercise above, tap Snapshot, and fix at least two findings (e.g. a small touch target, a missing label, low contrast); if the fallback reports fewer than two, add a 36dp icon button and an unlabeled icon so it has something to report. Then swipe through the screen with TalkBack, since the scanner does not replace manual testing. Now take one custom control, a tappable element that is not a standard Button or Switch (e.g. a favorite toggle built from an Icon and a Text in a Row), and ask a senior developer (on a test project, your mentor) how to make TalkBack announce its role and state; if your screen has none, build that favorite toggle first with Modifier.clickable and record what TalkBack says. Apply what they show you, e.g. toggleable with a role and stateDescription (developer.android.com/guide/topics/ui/accessibility/principles). Without a device or emulator image for TalkBack, print the control's semantics tree before and after (printToLog, Compose only) and ask your mentor to run TalkBack over your build and write down what it says for the control before and after. Evidence: the scanner (or fallback) results before and after, a link to the merged PR, what TalkBack said about the control before and after (heard by you, or written by your mentor with your printed tree), what you were helped with and by which role, and your reviewer's comments (hide names).
09Concurrency (Android)
Writing correct concurrent Android code: coroutines and structured concurrency, dispatchers, cancellation, Flow, StateFlow and SharedFlow, lifecycle-aware collection, main-thread rules and ANRs, races and shared mutable state.
TargetNovice
Concurrency (Android)
Writing correct concurrent Android code: coroutines and structured concurrency, dispatchers, cancellation, Flow, StateFlow and SharedFlow, lifecycle-aware collection, main-thread rules and ANRs, races and shared mutable state.
Learn which thread your coroutine code runs on and what ends it
Read 'Best practices for coroutines in Android', developer.android.com/kotlin/coroutines/coroutines-best-practices, the sections 'Suspend functions should be safe to call from the main thread' and 'The ViewModel should create coroutines', and 'Kotlin flows on Android', developer.android.com/kotlin/flow, the sections 'Collecting from a flow' and 'Executing in a different CoroutineContext'. Then pick one screen of your real or test app (a ViewModel that loads something; if your app has no coroutine code yet, ask your mentor, who plays the senior on a test project, for a ViewModel in a sample such as github.com/android/nowinandroid) and write half a page about three places that launch a coroutine, call a suspend function or collect a flow. For each say which thread the code runs on (Main, or the dispatcher given to withContext or flowOn), whether the function is main-safe (safe to call from the main thread), which scope owns the coroutine, and what ends it (the ViewModel being cleared, the screen going away, nothing). Mark the one you are least sure about. Evidence: your half page and your mentor's comments on it.
Load data off the main thread in a ViewModel and show it with a StateFlow
Using your half page from the exercise above, take a well-scoped ticket on your real or test project that shows data produced by slow work (e.g. reading a text file from the app's files directory, parsing a JSON file from assets). On a test project (a new Empty Activity (Compose) project is enough) create it: a repository with a function that calls Thread.sleep(2000) and returns 50 strings. Make it main-safe: a suspend function whose blocking part runs in withContext with a dispatcher passed in through the constructor (Dispatchers.IO as the default), as the best-practices page above shows. In the ViewModel start it with viewModelScope.launch and expose an immutable UI state (Loading, Success, Error) as a StateFlow behind a private MutableStateFlow. Collect it in the UI with collectAsStateWithLifecycle (Compose) or repeatOnLifecycle (Views), see developer.android.com/topic/libraries/architecture/coroutines and developer.android.com/topic/libraries/architecture/views/coroutines-views (repeatOnLifecycle needs lifecycle-runtime-ktx 2.4.0 or higher, per developer.android.com/kotlin/flow/stateflow-and-sharedflow). Show proof it stays off the main thread: log Thread.currentThread().name inside the blocking part and in the ViewModel, keep a progress indicator animating while it loads, and turn on StrictMode with penaltyLog in debug builds (developer.android.com/reference/android/os/StrictMode) and record whether Logcat shows a violation from your code: its page covers disk and network access, so expect it to stay quiet for Thread.sleep and treat the thread names and the animating indicator as the proof. Rotate the device while loading and check the load ran once. Then remove the withContext once and note what happens. Evidence: PR link, the Logcat lines with thread names for both versions, a recording of the rotation, and your reviewer's comments.
Cancel the old request and stop polling when the screen goes away, with help
Cancellation is where Novices get help, so plan to ask. First read 'Make your coroutine cancellable' and 'Watch out for exceptions' in developer.android.com/kotlin/coroutines/coroutines-best-practices. Then extend the ViewModel from the exercise above with two things that use fake delay(1500) calls instead of a real network (real request cancellation is Networking's): a search box where every change starts a new viewModelScope.launch and first cancels the previous Job, and a polling loop, while (true) { log the time; delay(2000) }, started when the screen opens. Check in Logcat that only the latest search finishes, then close the screen so the ViewModel is cleared and check the polling log stops. Next ask your mentor (the senior, on a test project) to plant a fault in a copy of your branch: wrap the delay in try { } catch (e: Exception) { }, or in runCatching. Predict, then see what the loop does after you close the screen. Per the delay page, kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/delay.html, delay resumes at once with CancellationException when its Job is cancelled, so the swallowed loop may spin without suspending: the app may freeze or flood Logcat (run it on an emulator and stop it with adb shell am force-stop and your package name), and you record what you saw. Work out the cause with them, and fix it by rethrowing CancellationException or catching a specific exception type, as that page cautions. Write the cause in your own words. Evidence: PR link, Logcat excerpts for the search and the polling before and after, the planted fault, your explanation, what you asked and who helped, and your reviewer's comments.
Call older callback and thread code from a coroutine, with help
Older callback and thread code is part of most apps, and you get help with it here. Find one place in your real project that a ViewModel reaches through a callback, a Thread, an Executor or a Handler; if your real project has none, use the LegacyClient version. On a test project, your mentor gives you, or you write with them, class LegacyClient(private val executor: Executor) { fun fetch(onResult: (String) -> Unit, onError: (Exception) -> Unit) }, which sleeps 1 second on the executor and then calls back from that thread. Read the 'Create multiple threads' (Executor) and 'Use handlers' sections of 'Asynchronous work with Java threads', developer.android.com/guide/background/threading, so you can say where the callback runs. Then, with the senior, write a suspend function that wraps the call with suspendCancellableCoroutine (kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/suspend-cancellable-coroutine.html): resume with the value in onResult and resume with the exception in onError. Call it from viewModelScope and show the result through the ViewModel's state, never touching a View or composable state from the callback's thread. Ask what happens to the background work when the coroutine is canceled and write down the answer; stopping it is Advanced. Evidence: PR link, the legacy code and your wrapper, Logcat showing the thread of the callback and the thread of the suspend caller, the questions you asked with the answers and who gave them, and your reviewer's comments.
10Networking & APIs (Android)
Talking to servers from an Android app: Retrofit and OkHttp, serialization, token attach and refresh, 401 handling, connectivity and retries, HTTP caching, GraphQL and gRPC, WebSockets, image loading, client-side API contract work.
TargetNovice
Networking & APIs (Android)
Talking to servers from an Android app: Retrofit and OkHttp, serialization, token attach and refresh, 401 handling, connectivity and retries, HTTP caching, GraphQL and gRPC, WebSockets, image loading, client-side API contract work.
Learn how an endpoint's docs become a Retrofit call and its failure cases
Read the Retrofit introduction, lysine.dev/retrofit/, on declaring an API as an interface; the kotlinx.serialization converter page, github.com/lysine-dev/retrofit/tree/trunk/retrofit-converters/kotlinx-serialization, on adding it with a media type; the sections 'Choose an HTTP client' and 'Encapsulate network operations with a repository' of 'Connect to the network', developer.android.com/develop/connectivity/network-ops/connecting; 'Expose errors' in 'Data layer', developer.android.com/topic/architecture/data-layer; and 'Handle errors' in 'Load and display paged data', developer.android.com/topic/libraries/architecture/paging/v3-paged-data (IOException for network failures, HttpException for any non-2xx status). Then pick two endpoints from a documented API your app calls (on a test project, GET pokeapi.co/api/v2/pokemon?limit=20 and the detail endpoint under /pokemon/ for one name such as pikachu, documented at pokeapi.co/docs/v2) and write half a page. For each endpoint give the Retrofit method you would declare, the response fields you will keep with their Kotlin types, which of them the docs allow to be missing or null, and what the screen should show in each of three failures: no connection, a non-2xx status such as a 404, and a body your data class cannot read (the sources do not name the error for this one: write 'find out in Practice'). Mark every line where the docs do not say. Evidence: your half page and your mentor's comments on it.
Show a documented REST endpoint with loading, empty and error states
Using your half page, build one screen on a real or test project that loads a list from a documented endpoint and opens one item. On a test project: in a new Empty Activity (Compose) project add the INTERNET permission, Retrofit with the kotlinx.serialization converter and the PokeAPI list from your half page. Add the Kotlin serialization plugin (id org.jetbrains.kotlin.plugin.serialization, kotlinlang.org/docs/serialization-get-started.html) and mark response classes @Serializable. Tapping a name loads its detail (only on tap: PokeAPI asks you to limit requests). Declare suspend functions, call them from a ViewModel in viewModelScope and hold a sealed UiState with Loading, Content, Empty and Error. Build the client with Json { ignoreUnknownKeys = true }, because the detail has many fields your class leaves out (kotlinlang.org/docs/serialization-json-configuration.html), and write one line on what it hides. Empty: a text field filters the loaded names and shows 'no matches'. Error: catch IOException and HttpException (the second is a non-2xx status), show a different message for each and add a Retry button. Make every state happen: airplane mode on (first check that a browser on the emulator fails to load a page; if it still loads one, also turn off Wi-Fi and mobile data); the detail for the name doesnotexist (the server answers 404); a Network Inspector rule that changes a response's status code to 500 (View > Tool Windows > App Inspection, Rules View, developer.android.com/studio/debug/network-profiler); and a rule that edits a body so your class cannot read it (note the exception class and give it its own message). On a View project use a RecyclerView. Evidence: your diff, one screenshot per state, a Network Inspector screenshot of one request with its headers and body, and your reviewer's comments. Cover tokens, cookies, account data and people's names (use roles) in every screenshot, log and quote you hand in.
Get help with a token and an unclear contract, then fix the code
Access: you need an endpoint that wants a token and has a gap in its docs. On a real project use a backend colleague's endpoint and get the token the team's usual way. On a test project your mentor plays the backend developer: ask for a half-page API note for GET /orders (header Authorization: Bearer plus a token) and one saved sample response. If your mentor has none, use this seed: the note says price is a number and status is open or paid and is silent on an expired token; the sample has an order with "price": null, one with status refunded and a 401 with {"error":"token_expired"}. Use a made-up token; real tokens stay out of the repository and your evidence. Add the token in an OkHttp interceptor (code that sees every request and response, lysine.dev/okhttp/features/interceptors/), enqueue the documented shape in a MockWebServer test (a fake server that runs inside your test, lysine.dev/okhttp/5.x/mockwebserver3/mockwebserver3/-mock-web-server/) and read it into your data class. MockWebServer setup (the exercises below reuse it): Retrofit 3.0.0 brings OkHttp 4.12.0 (check current releases the day you start). Add testImplementation("com.squareup.okhttp3:mockwebserver3:5.5.1"), which raises OkHttp to 5.5.1 on the test classpath, and follow the linked 5.x pages; on OkHttp 4.12 use com.squareup.okhttp3:mockwebserver:4.12.0 and its Javadoc, lysine.dev/okhttp/4.x/mockwebserver/, where the same calls are setters (setHeadersDelay, withWebSocketUpgrade). Then replay the sample: the null price and the 401 break your code. Write the questions you took to your mentor or backend colleague, note the answers, then make price nullable, give status a default with coerceInputValues so an unknown value falls back to it (kotlinlang.org/docs/serialization-json-configuration.html) and show a sign-in-again message on a 401. Evidence: the test code and its output, your questions with the answers you got, your diff and your reviewer's comments.
11Data persistence (Android)
Storing data on a device: Room, DataStore, files and scoped storage, migrations, Paging 3, and offline-first design with the local store as source of truth, an outbound sync queue and conflict resolution.
TargetNovice
Data persistence (Android)
Storing data on a device: Room, DataStore, files and scoped storage, migrations, Paging 3, and offline-first design with the local store as source of truth, an outbound sync queue and conflict resolution.
Learn which store fits which data and what each one survives
Read 'Data and file storage overview', developer.android.com/training/data-storage, the table of storage options and the questions under it; 'DataStore', developer.android.com/topic/libraries/architecture/datastore, the Note about Room and the 'Use DataStore correctly' rules; and the opening of 'Save data in a local database using Room', developer.android.com/training/data-storage/room. Then pick five pieces of data in your real or test app (e.g. a sort-order setting, a list of notes, a draft, a downloaded PDF, a cached thumbnail; no passwords or tokens; on a new Empty Activity (Compose) project, use a notes app idea) and write one row for each: where it is stored now or where you would store it, why that store fits, and whether it survives a force-stop, the app's 'Clear data' action and an uninstall. The overview table answers the uninstall column; it does not say what a force-stop or 'Clear data' does, so write your expectation for those two, then confirm it for DataStore and a file in the next exercise and for Room in the one after. Mark the one row you would move. Evidence: your table and your mentor's comments on it.
Keep a setting in DataStore and a note as a file, and read both after a restart
Using your table from the exercise above, add two small stores to your real or test project (a new Empty Activity (Compose) project is enough). (1) A setting, e.g. 'show newest notes first', in Preferences DataStore: add datastore-preferences with the version shown on developer.android.com/jetpack/androidx/releases/datastore, create the store once at the top level of a file with the preferencesDataStore delegate (the guide says never to create two instances for the same file), read it as a Flow (a stream of values that updates when the data changes), write it with edit, keep it in a repository, expose it from the ViewModel as a StateFlow and collect it in the UI with collectAsStateWithLifecycle (Views: repeatOnLifecycle). If your project uses SharedPreferences or another store for settings, use that one. (2) A note's text as a file in the app's files directory (developer.android.com/training/data-storage/app-specific, 'Access persistent files'), written and read on a background dispatcher. Check: change the setting, save a note, run adb shell am force-stop with your package name, relaunch and confirm both are back; then use the app's Clear data action in system settings and confirm both are gone. Evidence: PR link, a recording of the force-stop and the clear-data checks, and your reviewer's comments (no real personal text in the note).
Store a list in Room and watch it in the Database Inspector
On your real or test project, store a list of items (e.g. notes with an id, a title and a created time) in Room. These exercises use Room 3 (androidx.room3 with KSP, the Kotlin tool that generates Room's code; stable version on developer.android.com/jetpack/androidx/releases/room3). On Room 2.x, use developer.android.com/jetpack/androidx/releases/room for versions, plugin and artifact names and 'Prepare and modernize in Room 2.x' in developer.android.com/training/data-storage/room/migration-2-to-3 for migrate(); the Room guides linked here show only Room 3. Write one @Entity (a class that becomes a table), one @Dao (an interface of queries) with suspend insert and delete functions and a @Query that returns a Flow ordered by time (developer.android.com/training/data-storage/room/async-queries), one @Database, and one database instance for the whole process. Room 3 needs a driver on the builder: use AndroidSQLiteDriver() as the Usage snippet on developer.android.com/training/data-storage/room shows, because the Database Inspector only works with the SQLite that ships with Android. Show the list in a screen with add and delete, through a repository and a ViewModel; no queries on the main thread. Run the app on an emulator or device with API 26 or higher (if the Inspector crashes the app on an Android 11 emulator, change API level), open View > Tool Windows > App Inspection > Database Inspector (developer.android.com/studio/inspect/database), run your @Query from the gutter button, untick Live updates (the table is read-only while it is on), edit a title and note whether the screen changes (the page says it should), then force-stop and relaunch to confirm the rows are there, and use Clear data to confirm they are gone. Evidence: PR link, two Database Inspector screenshots (invented titles only) and your reviewer's comments.
Change a Room entity's schema with help and keep the saved rows
A schema change on an installed app is where Novices get help, so plan to ask. Using the database from the exercise above with 3 rows installed (keep AndroidSQLiteDriver so the Database Inspector works), first export the schema, a JSON file per version that records the tables: set schemaDirectory with the Room Gradle plugin (Room 3: plugin id androidx.room3 and a room3 block, as under 'Export schemas' on developer.android.com/training/data-storage/room/migrating-db-versions; Room 2.x: the plugin section of developer.android.com/jetpack/androidx/releases/room), rebuild at version 1 and commit the JSON file. Then add a Boolean column such as is_pinned to the entity and raise the version to 2, but add no migration. Run it over the installed app without uninstalling, and write down what the page says happens (a missing migration path raises IllegalStateException) and what you see. Ask your senior (on a test project, your mentor) to walk you through an AutoMigration (Room builds the migration from the two schema files): AutoMigration(from = 1, to = 2) in @Database, a default value on the new column if Room asks for one, a rebuild so the version 2 JSON exists, and what Room needs from you if you rename a column. Run it over the installed version 1 and check the rows are still there with the new column filled. In a throwaway branch only, try fallbackToDestructiveMigration, see what happens to the rows and write why you would not ship it (the page's warning). Evidence: PR link with both schema JSON files, Database Inspector screenshots before and after, the failure from the first run, your questions with the answers and who gave them, and your reviewer's comments.
12App lifecycle & background work (Android)
When and how an Android app and its process run: Activity and Fragment lifecycle, configuration change, process death and saved state, WorkManager, foreground services, Doze and battery limits, notifications and FCM.
TargetNovice
App lifecycle & background work (Android)
When and how an Android app and its process run: Activity and Fragment lifecycle, configuration change, process death and saved state, WorkManager, foreground services, Doze and battery limits, notifications and FCM.
Learn what the system does to your screen and your process
Read 'Activity lifecycle', developer.android.com/guide/components/activities/activity-lifecycle (the six callbacks, 'Activity state and ejection from memory' and 'Saving and restoring transient UI state'), 'Fragment lifecycle', developer.android.com/guide/fragments/lifecycle (the Fragment callbacks, and the separate Lifecycle of a Fragment's view that `getViewLifecycleOwner()` gives you), and 'Save UI states', developer.android.com/topic/libraries/architecture/saving-states, whose table compares ViewModel, saved state and persistent storage. Then, for one screen of your real or test app (a new Empty Activity project with a text field and a counter is enough), write a table with five rows: rotating the device, pressing Home and coming back, another app covering yours, the system killing your process while you are away, and pressing Back to leave the screen. For each row write which callbacks run, and which of four places still hold the typed text afterward: a field in the Activity, a ViewModel, saved state (`SavedStateHandle` or `rememberSaveable`) and a database or DataStore. Put a question mark on every cell you are not sure of; you will test them in the exercises below. Compose and View projects share the same activity callbacks and the same table. Under the table add three lines about Fragments: which callbacks create and destroy a Fragment's view, what the page shows happening to the Fragment itself while its view is destroyed, and why a Fragment observes data it shows through `viewLifecycleOwner`. Evidence: your table, your three Fragment lines and your mentor's comments on the cells marked with a question mark and on the three lines.
Keep a screen's state across rotation and stop its work when it leaves the screen
Using your table from the exercise above, fix two things on one screen. On a test project, build them in a new Empty Activity project: a text field, a counter button, and a repeating task that logs a line every second (for example a `Handler` that posts itself again, started when the screen appears). First add a `Log.d` line to `onCreate`, `onStart`, `onResume`, `onPause`, `onStop` and `onDestroy`, rotate the device, press Home and come back, and keep the Logcat output. If your project has Fragments (View projects usually do), put the text field in one and also log its `onCreateView`, `onViewCreated`, `onDestroyView` and `onDestroy` in the same runs; on a Compose-only project, do the Fragment part in a new Empty Views Activity project with one Fragment, or a sample your mentor gives you. Then keep the text and the counter across rotation by moving them into a `ViewModel` (on a Compose project, hoist the state into it; a View project uses the same ViewModel). Then make the repeating task start in `onStart` and stop in `onStop`: the lifecycle page says to release what is not needed while the screen is not visible, and to prefer `onStop` over `onPause` because a paused activity can still be visible in multi-window mode. Prove with Logcat that the lines stop when you press Home and resume when you return. Lifecycle-aware flow collection belongs to concurrency, so use a plain callback here. Compare the cells you marked with a question mark, and your three Fragment lines, with what you saw. Evidence: the Logcat extracts (Activity and Fragment) from before and after your fix, your diff and your reviewer's comments.
Add a reminder notification with its channel and the Android 13 permission
Add a notification to a flow your project already has or, on a test project, build one: a 'Remind me' button that posts a notification. Read 'Notification runtime permission', developer.android.com/develop/ui/views/notifications/notification-permission, and 'Create and manage notification channels', developer.android.com/develop/ui/views/notifications/channels. Create a channel (guarded by a check for API 26 or higher) with an importance you can explain; the channels page says you cannot change its behavior after you create it, so choose it with your mentor. On API 33 or higher, declare `POST_NOTIFICATIONS` in the manifest (the permission page's first step), request it when the user taps the button, not at app start, and post the notification only after the user grants it; when they refuse, the screen must still work and say what happened. On an API 33 or higher emulator, test three cases with the adb commands on the permission page ('Test your app'): allowed, denied, and the 'newly installed' reset (`pm revoke` plus two `pm clear-permission-flags` commands). Then turn your channel off in the app's notification settings, tap the button again and record what your code does. `areNotificationsEnabled()` (permission page) is described as per package, so record what it returns with only your channel off, and also read `getNotificationChannel(id)?.importance` (channels page, 'Read notification channel settings'; `IMPORTANCE_NONE` does not show in the shade). If your project still targets API 32 or lower, also record when the page says the system shows the dialog. Evidence: screenshots of the notification, the dialog and the channel settings, one Logcat line for each case, your diff and your reviewer's comments.
Reproduce process death and a background limit, with help from your mentor
Getting help is part of this exercise. Take the screen from the exercises above and find out what a killed process loses. Either turn on 'Don't keep activities' in Developer options (developer.android.com/studio/debug/dev-options), which destroys every activity when you leave it, or press Home and run `adb shell am kill <package>`, then reopen the app from Recents. Add a log line to your ViewModel's `init` so you can see that a new ViewModel was created, and record what the screen shows. The text in your ViewModel is gone, as the 'Save UI states' table predicts. Look at it with your mentor, and write down what you asked and what you were told. Then keep the text in the ViewModel's `SavedStateHandle` (developer.android.com/topic/libraries/architecture/viewmodel/viewmodel-savedstate) and repeat the test. Next, your mentor gives you a background job, for example 'upload a draft when the user leaves, even if the phone sits idle overnight' or 'remind the user in an hour'. Before building anything, ask which limit applies (Doze, App Standby, or the rule on starting a foreground service from the background) and read the part of 'Background tasks overview', developer.android.com/develop/background-work/background-tasks, that the answer points to. Write down which API you would pick and why, and have your mentor check it. If you hit no problem on your own, the mentor's job still gives you something to ask. Evidence: before and after screenshots, the ViewModel log lines, your question with the answer, your API choice with its reason, and your mentor's comments.
13System integration & device capabilities (Android)
Plugging an Android app into the OS and hardware: intents, deep links and App Links, the share sheet, permission flows, Photo Picker, CameraX basics, location and Maps, widgets and app shortcuts.
TargetNovice
System integration & device capabilities (Android)
Plugging an Android app into the OS and hardware: intents, deep links and App Links, the share sheet, permission flows, Photo Picker, CameraX basics, location and Maps, widgets and app shortcuts.
Learn what the system does for a picker, a link and a location request
Read the Photo Picker page, developer.android.com/training/data-storage/shared/photo-picker, on the activity result contracts and what happens on devices without the picker; the deep links guide, developer.android.com/training/app-links/deep-linking, on the three link types, the intent filter and testing with adb; and 'Request runtime permissions', developer.android.com/training/permissions/requesting, on explaining why you ask, degrading gracefully and the 'Only this time' option. Then, for one small feature of your real or test app (on a test project, a notes list with an add-photo button, a link to one note and a 'where am I' button), write half a page with a row for each of the three: what the user taps, what the system shows, which manifest entries you need (a permission, an intent filter, nothing), and what your app does if the user cancels, denies, or nothing can handle the request. Mark the entries you are unsure about: you will ask your mentor. Evidence: your half page and your mentor's comments on it.
Let users pick a photo with the Photo Picker and handle cancel
Using your half page from the exercise above, add an 'add photo' button that opens the Photo Picker and shows the chosen image. Use the PickVisualMedia contract with ImageOnly (rememberLauncherForActivityResult in Compose, registerForActivityResult in Views; the page asks for androidx.activity 1.7.0 or higher) and handle a null result, which means the user closed the picker, by leaving the screen unchanged. Add no storage permission: the page presents the picker as the way to give your app only the items the user selects. Show the image with your project's image loader (e.g. Coil) so decoding stays off the main thread. Run it on an emulator with API 30 or higher that has at least two photos (take them with its camera app). Then read the 'Device availability' section of the page and write two sentences on what happens on a device older than API 30 and what you would add to the manifest for it. On a View project show the result in an ImageView. Evidence: your diff, screenshots of the screen before picking, after picking and after cancelling, the manifest showing no storage permission, your two sentences and your reviewer's comments.
Open one screen from a link and get help with the manifest entries
Using your half page, make a link open the screen of one item. On a test project, in the notes app, notes://item/3 opens the screen of note 3. Add an intent filter with the VIEW action, the DEFAULT and BROWSABLE categories and a data element with a scheme and host (developer.android.com/training/app-links/deep-linking), set android:exported="true" on the activity, since a browser or adb starts it from outside your app (the intents page says to set the value explicitly on every component with an intent filter and calls false the safer choice for other components, developer.android.com/guide/components/intents-filters, but a link target must be reachable), read intent.data in onCreate, take the id from it and open the matching screen with your project's navigation. A missing, non-numeric or unknown id shows a 'not found' screen and never crashes. Test with adb shell am start -W -a android.intent.action.VIEW -d "notes://item/3" followed by your package name, plus one bad link. Before the first run, ask your mentor to look over your manifest entries and write down every change they ask for; if they ask for none, write down the three things they checked. Evidence: your diff, the adb output for a good and a bad link, screenshots of both screens, your question and your mentor's answer, and your reviewer's comments.
Look up the user's location once with a clear reason and permission handling
Using your half page, add a 'where am I' button on a real or test project that shows the device's coordinates once. Show one sentence on why you need location before the system dialog appears. Declare ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION, request both, and read the position with FusedLocationProviderClient.getCurrentLocation, which that page recommends for a fresh position (developer.android.com/develop/sensors-and-location/location/retrieve-current). Handle each outcome with its own message: precise granted, approximate only (the permissions page says your app then gets approximate location only and should still work, developer.android.com/develop/sensors-and-location/location/permissions), denied, and a null location. Use an emulator image with Google Play services and send a test point with Extended controls > Location > Single points (developer.android.com/studio/run/emulator-extended-controls); never show your real address. To get a null location, switch Location off in the emulator's quick settings and tap the button; if the emulator still returns a point, show the code branch and say so. Also choose 'Only this time' once and note what the permissions page says about how long the app keeps access. If your app targets API 37 or later and only needs location for one-off actions, Google Play policy requires the location button instead (see 'One-time access' on the permissions page); on a test project targeting API 36 the runtime request is fine, and your half page should say which applies. Ask your mentor one question about an edge case from your half page and write down the answer. Evidence: your diff, one screenshot per outcome, the sentence you show before the dialog, your half page's line on which rule applies, your question with the answer, and your reviewer's comments.
14Security & privacy (Android)
Protecting data, traffic and users on Android: Keystore and encrypted storage, network security config, pinning, R8, exported components, OWASP MASVS, Play Integrity, sign-in (Credential Manager, passkeys, OAuth PKCE), Google's privacy rules.
TargetNovice
Security & privacy (Android)
Protecting data, traffic and users on Android: Keystore and encrypted storage, network security config, pinning, R8, exported components, OWASP MASVS, Play Integrity, sign-in (Credential Manager, passkeys, OAuth PKCE), Google's privacy rules.
Learn the Android security rules you will follow in every change
Read 'Security tips', developer.android.com/privacy-and-security/security-tips, focusing on its sections on data storage, API key management, networking, user data (including logging), WebView and interprocess communication; 'Android Keystore system', developer.android.com/privacy-and-security/keystore, for how it protects keys, how `KeyInfo` reports a key's security level and why to keep it off the main thread; 'android:exported', developer.android.com/privacy-and-security/risks/android-exported, which says to always set the attribute explicitly, with the definition of `false` in the attribute's entry on developer.android.com/guide/topics/manifest/activity-element; and the paragraph on the Jetpack `security-crypto` library in 'Cryptography', developer.android.com/privacy-and-security/cryptography, which says what happened to the library many older tutorials use for encrypted storage. These pages change, so write what they say on the day you read them. Then write a one-page checklist for your real or test app (a new Empty Activity project is enough) with six rules: where credentials and tokens may be stored, where an API key may and may not live, what may be logged, which protocol traffic must use, which components may be exported, and which encrypted-storage library the project must not add. For each rule write where in your code you checked it (a file name) or 'not applicable', and end with up to three things you were unsure about as questions for your mentor. Evidence: your checklist with the questions and your mentor's answers.
Remove a hardcoded key, sensitive logs and cleartext traffic from one module
Using your checklist, fix three things in one module of your real or test project. On a test project, seed them: `const val API_KEY = "FAKE-KEY-0000"` (made up), a `Log.d` that prints a made-up email and token, and the cleartext request below. Key: move it out of source control with the secrets Gradle plugin that Security tips names, github.com/google/secrets-gradle-plugin (keep `local.properties` and `secrets.properties` out of your evidence), note what the page says about keys that ship inside the app, and ask your mentor which keys in your app are truly secret and which are restricted by package name and signing certificate. Logs: remove the sensitive values from the log call, turn on R8 for the release build (`isMinifyEnabled = true`, or `optimization { enable = true }` on Android Gradle plugin 9.3 or higher, developer.android.com/build/shrink-code), add `-maximumremovedandroidloglevel 4` (drops verbose, debug and info calls) to `proguard-rules.pro` (developer.android.com/topic/performance/app-optimization/additional-rule-types), sign the local release build with the debug signing config so it installs (for this check only), and confirm in Logcat that it no longer prints them. Cleartext: add `android:usesCleartextTraffic="true"` to `<application>` so a plain `http` request succeeds, record that, then remove the opt-in, call an `https` address and record the blocked `http` attempt (on a real project, search for `usesCleartextTraffic`, `cleartextTrafficPermitted="true"` and plain `http` URLs instead). Name your HTTP client: developer.android.com/privacy-and-security/risks/cleartext-communications says URLConnection, Cronet and OkHttp enforce HTTPS from API 28, while Ktor is unlikely to. Your mentor hands you one more line to call safe or unsafe; say which and why. Evidence: your diff, before and after Logcat text with made-up values only, both request results with the client named, and your mentor's answers.
Store a session token encrypted with an Android Keystore key
Access: an emulator is enough; use API 31 or higher to read the key's security level with `getSecurityLevel()`. In your real or test project, find where the app stores a token or other credential (SharedPreferences, DataStore or a file); on a test project, add a screen that saves a made-up token string. Using the Keystore reading from your checklist exercise, generate an AES key with `KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore")` and a `KeyGenParameterSpec`, encrypt the token with `AES/GCM/NoPadding` (a mode the Cryptography page recommends) on a background dispatcher, because the Keystore page says to keep it off the main thread, and store only the ciphertext and its IV. Read it back and decrypt it after you kill and restart the app. Do not add `androidx.security:security-crypto`, whose APIs are deprecated; if your project already uses it, do not migrate it alone: list where it is used and ask your mentor how the project plans to replace it. Read the key's `KeyInfo` and record the security level your emulator or device reports (it need not be hardware-backed; developer.android.com/reference/android/security/keystore/KeyInfo says `getSecurityLevel()` was added in API 31, so on a lower API level use `isInsideSecureHardware()`), and open the stored file with Android Studio's file tools to show it holds no readable token. Ask your mentor whether your project's threat model needs a key that also requires the user to authenticate. Evidence: your diff, the stored ciphertext and the `KeyInfo` result as text, the restart check and your mentor's answer.
Check every manifest component for accidental export, with help
Using your `android:exported` reading from the exercise above, open `AndroidManifest.xml` in your real or test project, click its Merged Manifest tab (developer.android.com/build/manage-manifests) and list every `<activity>`, `<service>`, `<receiver>` and `<provider>`, including those added by libraries, with the value of `android:exported` and, for each exported one, the reason (the launcher activity, a deep link, a share target). On a test project, first add a `Service`, a `BroadcastReceiver` and an internal-only `Activity` with no `android:exported` attribute, and give the receiver `android:exported="true"` and no permission, so there is an exposed component to find. Set the attribute explicitly on every component you own. Use an emulator with a Google Play system image and run `adb shell id` first: a root shell (uid 0) may start components other apps cannot, so if you see it, run `adb unroot` and check again. For one component you set to false, run `adb shell am start -n <package>/<activity>` and record what happens, repeat it for an exported one, and explain the difference with the definition of `false` from your reading. For every exported component you cannot justify, or that comes from a library, do not decide alone: ask your mentor or a senior and write down the answer. Run `./gradlew lint` and list any warnings about exported components. Evidence: your table, the `adb shell id` result, the two adb outputs, the lint list and the answers you were given.
15Performance, profiling & memory (Android)
Measuring and improving speed and memory use on Android: Profiler, Perfetto, Macrobenchmark and Baseline Profiles, startup, jank, ANRs, battery, app size, Android Vitals, leaks, out-of-memory crashes and heap dumps.
TargetNovice
Performance, profiling & memory (Android)
Measuring and improving speed and memory use on Android: Profiler, Perfetto, Macrobenchmark and Baseline Profiles, startup, jank, ANRs, battery, app size, Android Vitals, leaks, out-of-memory crashes and heap dumps.
Learn to profile a screen and read a leak report
Read 'Profile your app performance', developer.android.com/studio/profile, on profileable versus debuggable apps, the device requirements and how to start a profiler task, and 'How LeakCanary works', square.github.io/leakcanary/fundamentals-how-leakcanary-works/, on retained objects and leak traces. Then pick one screen of your real or test app (a new Empty Activity project with a list screen is enough) and write half a page. For each of three symptoms (the screen freezes while it opens, memory keeps growing when you rotate the device, a list stutters while you scroll) name the profiler task you would start, say whether it needs the debuggable 'complete data' option or the profileable 'low overhead' option and why, and name the first thing you would look at in the result. Check that your emulator or device meets the requirements on the first page (a virtual or physical device with API level 29 or higher and Google Play). Evidence: your half page and your mentor's comments on it.
Move image decoding off the main thread on one screen and measure again
Using your half page from the exercise above, profile one screen of your real or test app and fix what blocks its main thread. On a test project: in a new Empty Activity (Compose) project, add a JPEG you own that is at least 3000 pixels wide (e.g. a phone photo) to res/drawable-nodpi and show it as a 96 dp thumbnail in 20 rows of a LazyColumn, decoding it with BitmapFactory.decodeResource inside each row's composable. Run the app with 'Profile 'app' with complete data' on an emulator or device with API 29 or higher and a Google Play image (the requirements on developer.android.com/studio/profile), start the 'Find CPU Hotspots (Callstack Sample)' task (developer.android.com/studio/profile/sample-callstack), open the screen and scroll to the end. In the main thread, find the decode calls and write down how much time they take. Fix it the way your project loads images (e.g. Coil sizes and decodes off the main thread), or decode on a background dispatcher with inSampleSize so the bitmap is no larger than the thumbnail (developer.android.com/develop/ui/compose/graphics/images/optimization). Record the same steps again. On a View project, use an ImageView in a RecyclerView. Evidence: a link to the PR or your diff, before and after screenshots of the main thread with the time spent decoding, and your reviewer's comments.
Measure what an unkeyed list costs on the main thread and add keys
Writing a lazy list is Jetpack Compose's work; here you measure what a missing key costs on the main thread and prove the fix with a system trace. On a real or test project, take a LazyColumn whose rows come from a list that changes order. If you have none, build one: data class Note(val id: Int, val text: String), 2,000 notes, rows written as items(notes) { NoteRow(it) } with no key, a NoteRow that starts with val cost = remember(note.id) { List(20_000) { Random.nextInt() }.sorted().size } (standing in for per-row work such as formatting a date), and a button above the list that moves the last note to the top (build a new list with it first). Run the app with 'Profile 'app' with complete data' on an emulator or device with API 31 or higher and a Google Play image (the Profiler needs API 29 or higher with Google Play; the Janky frames track needs API 31 or higher, developer.android.com/studio/profile/jank-detection). With the list at the top, start the system trace task, tap the button three times and stop. For each tap, find the frame after it in the Threads timeline, hover the longest main-thread slice in that frame to read its duration, and note whether the frame shows up in the Janky frames track under Display. Then read 'Use lazy layout keys and content types' in developer.android.com/develop/ui/compose/performance/bestpractices, add key = { it.id }, record the same three taps again and write one sentence on why the durations differ and why a list index or hashCode makes a poor key. If the unkeyed taps show no jank, raise 20_000 for both runs. On a RecyclerView project, compare notifyDataSetChanged with DiffUtil (ListAdapter) the same way. Evidence: both traces as screenshots with the three slice durations, your diff, a note that emulator timings show direction only, and your reviewer's comments.
Find a leaked Activity with LeakCanary and fix it
Access: an emulator is enough. In a real or test project, add LeakCanary to the debug build only: debugImplementation 'com.squareup.leakcanary:leakcanary-android:<version>', using the version on square.github.io/leakcanary/getting_started/ (it needs no code). On a test project, seed two leaks into MainActivity: a top-level object Registry with var activity: Activity? that onCreate sets to this, and a GlobalScope.launch { while (true) { delay(1000); println(title) } } in onCreate (accept the delicate API warning on purpose). Run the debug build, rotate the device two or three times, press Home and open the LeakCanary report after a few seconds. If no notification appears (on Android 13 or higher a new app's notifications are off until allowed), allow them in the app's settings or tap the LeakCanary launcher icon, which opens the leak list (square.github.io/leakcanary/fundamentals-how-leakcanary-works/). For each leak, find the suspect reference marked ~~~ and write what that reference is for, when it should be cleared and why it was not. Fix the first by not holding the Activity (or holding applicationContext if it only needs a Context) and the second by launching in lifecycleScope; do not wrap the leaked object in a WeakReference: that page says weak references never fix a leak (square.github.io/leakcanary/fundamentals-fixing-a-memory-leak/). Making coroutines cancel correctly is Concurrency; here you only change where one is launched. Rotate again and confirm the leaks are gone. Then ask your mentor for a leak you cannot read from the trace (e.g. one that runs through a library), or use one from your real app, and write what you tried, what you asked and the answer. Evidence: both leak traces, your diff, the clean run, the question with the answer, and your reviewer's comments.
16Debugging & production monitoring (Android)
Finding and fixing defects in Android apps, locally and in production: debugger, Logcat, adb and bug reports, Layout Inspector, crash and ANR traces, mapping files, Crashlytics, Android Vitals, and reproducing field bugs.
TargetNovice
Debugging & production monitoring (Android)
Finding and fixing defects in Android apps, locally and in production: debugger, Logcat, adb and bug reports, Layout Inspector, crash and ANR traces, mapping files, Crashlytics, Android Vitals, and reproducing field bugs.
Learn the three local debugging tools and plan the hunt for one bug
Read the Android Studio debugger guide, developer.android.com/studio/debug (a debuggable build variant, breakpoints, examining variables and evaluating expressions), the Logcat guide, developer.android.com/studio/debug/logcat (View > Tool Windows > Logcat and queries such as package:mine, level:ERROR, is:crash, tag: and age:5m), and the Layout Inspector guide, developer.android.com/studio/debug/layout-inspector (Running Devices window, Toggle Layout Inspector, Component Tree, Attributes, Toggle Deep Inspect). Then pick one open bug in a real or test project (or one your mentor gives you) and write a plan before touching the code: the numbered steps that should reproduce it, what you expect against what happens, where you would put the first breakpoint and which variable you would read there, the Logcat query you would use, and whether the Layout Inspector would help or not. Evidence: the plan (a PR comment or gist) and your mentor's comments on whether it would find the cause.
Reproduce and fix a crash with the debugger and Logcat
On a real or test project, take a ticket where the app crashes (e.g. an IndexOutOfBoundsException when the last list item is deleted, or a NullPointerException on a field a response leaves out). On a test project your mentor plants one in a copy of your project. Work on your own, using the plan style from the exercise above: write numbered reproduction steps and run them on the debug variant on an emulator or device; find the stack trace in Logcat (is:crash, or level:ERROR with package:mine) and click through to the line; put a breakpoint above it, run the steps again, read the variables in the debugger and evaluate an expression to test your guess; fix the cause rather than hiding the symptom; then run the same steps again. Evidence: a link to the merged PR, the reproduction steps, the stack trace (hide personal data), a screenshot of the debugger paused with the variables you read, the cause in two sentences, and your reviewer's comments.
Find a layout bug with the Layout Inspector
On a real or test project, take a ticket where a screen looks wrong without crashing (e.g. a button hidden behind another view, text cut off, an item with zero height, a row missing from a list). On a test project your mentor plants one in a copy (e.g. a view made invisible by a state value, or a size modifier in the wrong order). Run the screen on an emulator or device, open the Layout Inspector as in the guide from the first exercise, switch on Toggle Deep Inspect, click the wrong element (or find it in the Component Tree), read its attributes (size, visibility, padding or Compose modifiers) and go from there to the line of code. Fix it and compare the screen before and after. Evidence: a link to the merged PR, a Layout Inspector screenshot with the element selected and the attribute that explains the bug, before and after screenshots, and the cause in one sentence.
Ask for help with a bug that will not reproduce
Your mentor (or a senior developer) gives you a written bug report that you cannot reproduce at first: they choose a bug that really appears only under one condition (e.g. another language, the largest font size, dark theme, or after the app was in the background for a while) and do not name the condition. If you reproduce it at once, ask for a harder one. Try for up to an hour on your own: run the steps exactly, then change one thing at a time (emulator or device, API level, language, font size, theme, rotation, network off) and note every try and its result. Then ask for help in writing: expected against actual, what you tried with results, what you varied, a Logcat extract, and one specific question. Use their hint to reproduce it, fix it with the debugger and Logcat, and write what a report should contain so the next person can reproduce it. Evidence: your log of tries, the help request, their answer, a link to the PR, the cause, and your reviewer's comments.
17Automated testing (Android)
Automated testing for Android apps: JUnit and mocking, coroutine and Flow tests, Compose and Espresso UI tests, Robolectric, screenshot tests, tests on real devices, and designing code so it can be tested.
TargetNovice
Automated testing (Android)
Automated testing for Android apps: JUnit and mocking, coroutine and Flow tests, Compose and Espresso UI tests, Robolectric, screenshot tests, tests on real devices, and designing code so it can be tested.
Learn what to unit test and which test double to use for your own code
Read three Android pages: 'What to test', developer.android.com/training/testing/fundamentals/what-to-test, on the unit tests worth writing (ViewModels, repositories, utility classes), edge cases and the tests to avoid; 'Build local unit tests', developer.android.com/training/testing/local-tests, on where JUnit tests live and how a test class looks; and 'Using test doubles in Android', developer.android.com/training/testing/fundamentals/test-doubles, on fakes, mocks and stubs and why fakes are preferred. Then take the last pull request you wrote (on a test project, a small class you write now, e.g. a function that groups expenses by month, or a ViewModel that filters a list) and list each function in it with a decision: test it, or skip it with a reason from the first page. For each one you test, give the normal case and at least two edge cases (empty input, zero, a boundary, an error from a dependency), and say which dependency needs a test double and whether you would use a fake or a mock. Evidence: the list and your mentor's comments on the decisions you were unsure about.
Write unit tests for your own ticket's code with JUnit before opening the pull request
On a real or test project, take a ticket you are implementing (in a new Empty Activity (Compose) project, a small class such as a price calculator or a list filter) and write its unit tests together with the code, without being asked, using your list from the exercise above. Put them in `src/test/java` and follow the style of the existing tests: naming, given-when-then layout and assertion library (in a new project, JUnit 4 as in developer.android.com/training/testing/local-tests, with names like `total_emptyList_returnsZero`). Write at least five tests, two of them edge cases from your list. Run them in Android Studio (right-click the test class, Run; see developer.android.com/studio/test/test-in-android-studio) until they pass. Then check that they can fail: change one line of your code (flip a comparison, drop a filter), show a test going red, and undo it. Also run the existing tests for any code your ticket changed and fix the ones you broke. Evidence: a link to the pull request (or, on a project with no pull requests, the commit your mentor reviewed) with the code and tests together, a screenshot of the passing run and of the one red run, the two edge cases and what each protects, and your reviewer's comments.
Test a class with a mocking library and ask for help on a tricky case
Pick or write a class that depends on an interface and calls Android's `Log`, e.g. `GreetingFormatter(private val users: UserRepository)` that logs with `Log.d` and returns a greeting for a user, or a similar class in your project. Write tests with the mocking library your project uses (MockK, mockk.io/, or Mockito; on a new project use MockK: add `testImplementation("io.mockk:mockk-android:<version>")`, with the version from mockk.io/ANDROID.html): stub the repository's answers and verify one interaction that matters (e.g. it asked for the right user id). Then write the same test with a hand-written fake and note which reads better. Run the tests: calling `Log.d` in a local unit test fails with 'Method ... not mocked' (see 'Error: Method ... not mocked' in developer.android.com/training/testing/local-tests; if your project already sets `returnDefaultValues` to true, switch it off for this exercise). Take that failure to a senior developer (on a test project, your mentor) and ask how to handle it here: move the logging out of the logic, pass a small logger interface, or the `returnDefaultValues` setting, which that page calls a last resort. Write down what they said and what you chose. Evidence: a link to the pull request (or, on a project with no pull requests, the commit or diff your mentor reviewed), the failing output, who helped and the decision, the mock-based and fake-based tests side by side, and your reviewer's comments.
18Code quality & code review
Keeping a codebase healthy (linting and formatting, complexity analysis, readable code) and reviewing others' changes, including AI-generated ones, so problems are caught and knowledge spreads.
TargetNovice
Code quality & code review
Keeping a codebase healthy (linting and formatting, complexity analysis, readable code) and reviewing others' changes, including AI-generated ones, so problems are caught and knowledge spreads.
Ship four PRs that pass lint and need few comments, and track the feedback
Over your next four pull requests on a real or test project, run the team's linter, formatter and type check locally before pushing, so CI passes on the first try, and do a self-review of the full diff before asking anyone to look (remove debug code, unclear names, dead code, missing tests). When comments arrive, handle each one yourself: fix it, or reply with a short reason if you disagree, and resolve the thread only once the reviewer is satisfied. Keep a simple log per PR: how many comments you got, what kind they were (bug, naming, structure, style, tests) and what you changed. At the end, pick the most common kind and add a line for it to your personal self-review checklist. Evidence: links to the four PRs with green lint and CI, your comment log, your self-review checklist, and a short note to your mentor on the trend you see.
Self-review a merged PR of yours against Google's reviewer checklist
Read Google's engineering practices page 'What to look for in a code review,' google.github.io/eng-practices/review/reviewer/looking-for.html. Then pick one of your own merged pull requests from a real or test project and review it as if a teammate had written it, going through each area the page lists. Write down everything you would now flag, which area it falls under, and whether the original reviewer caught it. Pick the two findings that matter most and say what you will do differently in your next PR. Evidence: a link to the PR, your written self-review organized by the page's areas, and your mentor's response to it.
Review two small PRs from peers with your mentor checking your comments
Ask to be added as a reviewer on two small pull requests from teammates on a real or test project (a bug fix, a copy change, a small component). For each one, check out or open the preview, confirm the change does what the ticket says, and leave comments: at least one question or suggestion if you find something and at least one note on something done well. Label minor points as nits (small, non-blocking suggestions such as a nicer name) so the author knows what is blocking. Before posting, show your draft comments to your mentor or a senior reviewer and adjust them based on their feedback. Evidence: links to both reviews, your draft comments next to what you actually posted, and one sentence on what the senior reviewer caught that you missed.
19Version control (Android)
Using Git on Android projects: clean commits and branches, pull requests, branching strategies, resolving conflicts including Gradle files and version catalogs, keeping keystores out of the repo, and handling large binary assets.
TargetNovice
Version control (Android)
Using Git on Android projects: clean commits and branches, pull requests, branching strategies, resolving conflicts including Gradle files and version catalogs, keeping keystores out of the repo, and handling large binary assets.
Learn the daily Git loop and what an Android project must never commit
Read 'Basic Branching and Merging', git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging (branches, merging, and what a simple conflict looks like), 'Undoing Things', git-scm.com/book/en/v2/Git-Basics-Undoing-Things, and GitHub's Android `.gitignore` template, github.com/github/gitignore/blob/main/Android.gitignore, which ignores build output, `local.properties`, `*.jks`, `*.keystore` and `google-services.json`. Then, in your real or test project (a new Android Studio project is enough; if it is not a Git repository yet, run `git init` and `git add .` in it first, without committing), run `git ls-files` and `git check-ignore -v local.properties` and write a one-page note: your team's rules for branch names, commit size and message style (ask your mentor if nothing is written down), which of these your project tracks and which it ignores, and why: `local.properties`, any `*.jks` or `*.keystore`, `google-services.json` (the template ignores it but teams differ, so ask), `build/`, `.gradle/`, `gradle/libs.versions.toml` and `gradlew`. Finish with the five Git commands you will use every day and what each changes. Evidence: your note and your mentor's comments on it.
Make a branch, two small commits and a pull request, and resolve a simple conflict
Do the daily loop once, end to end. On a real project: update `main`, make a branch named as your team does, make two small commits whose messages follow your team's style (if it has none, use the advice on cbea.ms/git-commit/), push, and open a pull request that says what changed and how to test it. If you have no repository access or no hosting account, use a local seed instead, run in Git Bash or another POSIX shell. Run `mkdir vc && cd vc && git init && git checkout -b main && git config user.name T && git config user.email t@example.com`, create `app/src/main/res/values/strings.xml` with a `<resources>` element holding `<string name="welcome">Hello</string>`, and commit it. Then `git checkout -b feature/welcome`, change the text to `Welcome back` and commit; `git checkout main`, change it to `Hi there` and commit. Review the branch as a pull request would show it: `git log --oneline main..feature/welcome`, `git diff main...feature/welcome` and `git request-pull main . feature/welcome` (git-scm.com/docs/git-request-pull), and write the description you would post. Merge with `git merge feature/welcome`, open the file, keep one text, delete the lines with `<<<<<<<`, `=======` and `>>>>>>>`, run `git add` and `git commit`. If a real-project conflict comes up, ask a teammate which side to keep when you are unsure. Evidence: the pull request link or your local description, the conflict as Git showed it, the resolved file and `git log --oneline --graph`.
Resolve a version catalog conflict and a first rebase with your mentor's help
Set up a seed in Git Bash or another POSIX shell: `git init -b main cat && cd cat && git config user.name T && git config user.email t@example.com && mkdir gradle app`. Create `gradle/libs.versions.toml` with a `[versions]` line `coil = "2.6.0"` and a `[libraries]` line `coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" }`, and `app/build.gradle.kts` with a `dependencies { implementation(libs.coil.compose) }` block, and commit. On `feature/retrofit` add as the last line of each place `retrofit = "2.11.0"`, a library line for `com.squareup.retrofit2:retrofit` with `version.ref = "retrofit"`, and `implementation(libs.retrofit)`, and commit. On `main` add the same three lines for `okhttp` (`4.12.0`, `com.squareup.okhttp3:okhttp`) and commit. Run `git merge feature/retrofit` on `main`: both files conflict. Resolve them yourself first. Keep both lines in the Gradle file. The catalog conflict spans both sections, so each side holds its own `[libraries]` header and `coil-compose` line: write one `[versions]` list and one `[libraries]` list, each key once. Then check that no markers remain with `git grep -nE '^(<<<<<<<|=======|>>>>>>>)'`, that `grep -c '^\[libraries\]' gradle/libs.versions.toml` and `grep -c '^coil-compose' gradle/libs.versions.toml` each print 1, and that every `libs.` name in the Gradle file has an entry in the catalog; on a real project also run `./gradlew :app:assembleDebug`. Do not commit the merge; copy the resolved files aside, then run `git merge --abort` (it works only before the merge is committed), `git checkout feature/retrofit` and `git rebase main`, resolve and check the same way, then `git add` and `git rebase --continue`, and ask your mentor which side the markers label `HEAD` in each case. Finally, commit a debug line on `main` and ask your mentor how to undo it safely; try `git revert HEAD`. Evidence: both conflict states, the resolved files, your questions with the answers, and the mentor's corrections.
20Dependency management (Android)
Choosing, upgrading and removing Android dependencies: Gradle version catalogs, BOMs, repositories, KSP versus kapt, AARs, automated updates, and the size and supply-chain cost of each library.
TargetNovice
Dependency management (Android)
Choosing, upgrading and removing Android dependencies: Gradle version catalogs, BOMs, repositories, KSP versus kapt, AARs, automated updates, and the size and supply-chain cost of each library.
Learn how a version catalog and a BOM decide which version you get
Read the Gradle guide 'Version Catalogs', docs.gradle.org/current/userguide/version_catalogs.html (gradle/libs.versions.toml with [versions], [libraries], [bundles] and [plugins], version.ref, and how an alias such as ktor-client-core becomes libs.ktor.client.core), 'Compose Bill of Materials', developer.android.com/develop/ui/compose/bom (declare the BOM with platform(), leave the Compose libraries without versions, override one version when needed, and that the BOM does not add libraries by itself), and 'Viewing and debugging dependencies', docs.gradle.org/current/userguide/viewing_debugging_dependencies.html (./gradlew :app:dependencies and dependencyInsight). In an app with several modules, put the module path in front of the task name, as in :app:dependencies, so the report is for the app module (Gradle's command-line guide, docs.gradle.org/current/userguide/command_line_interface.html, explains task paths). Then, for a real or test project (a new Empty Activity (Compose) project works), write a table of six libraries: where each one's version is declared (a [versions] entry, a BOM, or a literal in a build file), the version that really resolves (from ./gradlew -q :app:dependencyInsight --dependency <name> --configuration releaseRuntimeClasspath), and one library you think could be updated and why you would not update it yet. Evidence: the table and your mentor's comments on it.
Ask first, then add a library through the version catalog
On a real or test project, take a ticket that needs a small library the app does not have (e.g. androidx.datastore:datastore-preferences to remember one setting; check its latest stable version on developer.android.com/jetpack/androidx/releases/datastore). Before changing anything, write a short request to your senior (on a test project, your mentor): what you want to add, why the standard library or an existing dependency is not enough, its size and license as far as you can tell, and the alternative you considered. Wait for the answer, and record it. Then add the library on your own the way the project does: a [versions] entry and a [libraries] entry in gradle/libs.versions.toml with version.ref (or no version if a BOM manages it), implementation(libs.<alias>) in the module, a Gradle sync and ./gradlew :app:assembleDebug. Use it in a small change and run the app on an emulator. Do not use a dynamic version such as one ending in a plus sign (the build-speed guide, developer.android.com/build/optimize-your-build, explains why). Evidence: the request and the answer, a link to the merged PR with the catalog diff, the build output, and your reviewer's comments.
Update dependencies in small steps and ask before a major version
On a real or test project, list the available updates (Android Studio flags newer versions of many dependencies, as the 'Choose libraries wisely' page, developer.android.com/topic/performance/app-optimization/choose-libraries-wisely, says; note what Studio shows in your editor) and sort them into patch, minor and major. A new Empty Activity (Compose) project usually has no patch, minor or major update to practice on. If yours has none, seed them: add io.coil-kt:coil-compose at 2.5.0 to the catalog, show one image with AsyncImage in a test screen (the app needs the INTERNET permission, and any https image URL you may use will do), then update it to 2.6.0 and then to 2.7.0 as two minor updates (all three versions are on Maven Central). Coil 3 (group io.coil-kt.coil3) is the major version you ask about. Apply the patch and minor updates one at a time: bump the version in the catalog, run ./gradlew :app:assembleDebug and the project's unit tests, run the app, and commit each step. If the project uses a BOM and a newer one exists, bump the BOM and read the versions it changes with ./gradlew -q :app:dependencyInsight --dependency <name> --configuration releaseRuntimeClasspath. For the major version, do not upgrade: read its release notes and write the question for your senior (on a test project, your mentor) with what you found could break and what you suggest. Evidence: your sorted list, one commit per update with the test output, the question and the answer you got, and your mentor's comments.
21Build, signing & CI/CD (Android)
Producing a signed Android release automatically: Gradle and the Android Gradle plugin, build types and flavors, convention plugins, build speed, App Bundles, signing keys and Play App Signing, CI quality gates.
TargetNovice
Build, signing & CI/CD (Android)
Producing a signed Android release automatically: Gradle and the Android Gradle plugin, build types and flavors, convention plugins, build speed, App Bundles, signing keys and Play App Signing, CI quality gates.
Learn what a build variant is and which one to run for what
Read 'Configure build variants', developer.android.com/build/build-variants, on how build types (debug and release) and product flavors (named versions of the app, such as demo and prod) combine into build variants such as demoDebug, and the first half of 'Build your app from the command line', developer.android.com/build/building-cmdline, on the Gradle wrapper, assembleDebug, installDebug and why a variant's task name is its name in camel case (assembleDemoDebug). Read the 'Run lint from the command line' section of developer.android.com/studio/write/lint, which says lint checks only the default variant unless you run, for example, lintRelease, and is not run by the build on its own. Then, for a real or test project (on a test project the Now in Android sample, github.com/android/nowinandroid, whose README names demo and prod flavors), list every variant: its build type and flavor, the Gradle task that installs it, how it is signed (the command-line page says debug builds use a debug key and release builds need your own key; on Now in Android read the signingConfig comment in app/build.gradle.kts), and what you would use it for. Evidence: the table and your mentor's comments on it.
Run the right variant on two emulators and a device
On a real or test project, run the app on two emulators with different API levels (Android Studio's Device Manager; read the project's minSdk from its build files and use API levels at or above it) and, if you have one, a physical device with USB debugging on. For each, choose the variant in the Build Variants tool window and run from Android Studio, then do it once from the command line with the matching install task (e.g. ./gradlew installDemoDebug on Now in Android, whose README says to use demoDebug for normal development, that demo uses static local data, that prod makes real network calls to a backend that is not publicly available, and not to run ./gradlew test because it runs every variant). Use your table from the exercise above. Check what differs between two variants on screen and in the installed app: on Now in Android expect demo to show content and prod to show an empty or error state because its backend is not public, and compare the application id suffix of the debug and release variants. If your emulator or device refuses to install, read the error and the command-line page before asking anyone. Evidence: the commands you ran with their output, a screenshot of each device showing the variant, a sentence on what differs between the two variants you ran, and your mentor's comments.
Fix a CI failure of your own
On a real or test project, take a pull request of yours whose checks fail, and fix it on your own. Access: GitHub Actions is free for standard runners in public repositories, and private repositories on the Free plan get an included monthly allowance (docs.github.com/en/billing/managing-billing-for-your-products/about-billing-for-github-actions). Without CI, run the same Gradle commands that the project's pipeline runs (or the project's README lists) on a branch locally. If no check fails, ask your mentor to plant one on a branch of your project: a lint error, a failing unit test or a compile error in one flavor. Read the log from the top, find the first task that failed, run the same command locally, fix the cause and push; for lint, open the HTML report the task prints (build/reports/lint-results-debug.html for the debug variant). Evidence: the failing log excerpt, the command you reproduced it with, the cause in one sentence, a link to the fix, and the green run (or the local passing output), with any secret values hidden.
Get help with a signing or Gradle configuration problem
Your mentor gives you a release build that fails for a signing or configuration reason, with the cause not named. On a test project the mentor can use a signing setup that reads keystore.properties as in 'Remove signing information from your build files', developer.android.com/studio/publish/app-signing, and have you build the release variant on a fresh clone without that file; or a flavor whose name is wrong in a Gradle task. First read the error and try for up to an hour: run ./gradlew tasks, read the build file, and find which file or value is missing. Then ask in writing: what you ran, the first error line, what you checked, and one specific question. With their answer, make it work with a throwaway keystore you create for this (keytool -genkey as shown on the command-line page, kept out of the project) and write down where the real keys and passwords live on your team (the place, never the values); on a test project, ask your mentor where they would keep them. Evidence: your tries, the help request, the answer, the working command, and your mentor's comments. Never hand in a keystore, a password or the contents of keystore.properties.
22Analytics & feature flags (Android)
Implementing and verifying analytics events from a tracking plan, Remote Config and feature flags (kill switches, stale-flag cleanup), A/B test assignment and exposure logging, and consent-aware SDK setup on Android.
TargetNovice
Analytics & feature flags (Android)
Implementing and verifying analytics events from a tracking plan, Remote Config and feature flags (kill switches, stale-flag cleanup), A/B test assignment and exposure logging, and consent-aware SDK setup on Android.
Learn how a tracking plan names events and what Analytics allows
Read 'Log events', firebase.google.com/docs/analytics/android/events, on recommended versus custom events, the 500 event types and case-sensitive names; the logEvent entry of the FirebaseAnalytics reference, firebase.google.com/docs/reference/kotlin/com/google/firebase/analytics/FirebaseAnalytics, for the name and parameter limits and the reserved prefixes; and 'Naming conventions', avo.app/docs/data-design/naming-conventions, on casing, word order and duplicates. Then take the tracking plan for one feature you will work on (a table of event names, when each fires and its properties; on a test project your mentor, playing product, gives you a plan of 4 events for a notes feature, e.g. note_created and note_shared) and check every row: the name length, the first character, the reserved prefixes, at most 25 parameters, string values of at most 100 characters, one naming style, and no personal data in properties. Write the problems you found and the corrected rows, or why every row is fine. Evidence: the checked plan with your notes and your mentor's comments on it.
Add events from a tracking plan to a feature and verify each one fires
Access: the Firebase path needs a free Firebase project (a Google account; Analytics and A/B Testing are no-cost on the Spark plan and Remote Config has a fetch quota, per firebase.google.com/pricing) and an emulator or device with Google Play services (firebase.google.com/docs/android/setup). Fallback without Firebase: a LogcatTracker. Using your checked plan from the exercise above, on a real or test project add the events to the feature with the project's analytics wrapper. With none, write an interface AnalyticsTracker { fun track(name: String, params: Map<String, String>) } with a Logcat implementation (and a FirebaseAnalytics one if you have a project: logEvent with param(...), see the events page). Call it from the ViewModel or click handler, not from a composable body, so a recomposition or rotation does not log twice. Use the plan's names exactly. Verify each event: with Firebase, run adb shell setprop debug.firebase.analytics.app with your package name, watch Analytics > DebugView in the Firebase console (firebase.google.com/docs/analytics/debugview) and switch it off afterward with .none.; with the fallback, read the Logcat line. Write a unit test with a fake tracker that checks each event's name, parameters and that one tap logs it once. Evidence: PR link, a table of plan row, trigger and how you saw it fire (a DebugView or Logcat screenshot with device and account details hidden), the test, and your reviewer's comments. Never include google-services.json or keys.
Put new work behind an existing feature flag and have the names reviewed
Read first, then do the work: read the 'Release Toggles' part and 'Feature Toggles introduce validation complexity' (it covers testing both toggle states) in 'Feature Toggles', martinfowler.com/articles/feature-toggles.html. Then, on a real project, find the flag system your team already uses (Remote Config, a config file, a constants class) and a flag that fits a small new change (e.g. share_button_enabled). On a test project use this fallback: a FeatureFlags interface with isEnabled(name) backed by a flags.json in assets, or Remote Config with in-app defaults (firebase.google.com/docs/remote-config/android/get-started, Steps 3 and 4 say unfetched values return the in-app defaults). Add a small new UI element or behavior behind the flag, default off, and keep the old behavior when it is off. Test both states (a unit test with a fake flag provider, or two previews) and write what the user sees if the flag cannot be loaded. Open a PR and ask your reviewer (a senior; on a test project your mentor) to check the flag name, the event names and their properties against the tracking plan. Record each comment and what you changed. Evidence: PR link, screenshots of both flag states, the test, the review comments with your changes, and no config file contents or keys.
23AI-assisted development (Android)
Using AI coding assistants and agents, in Android Studio and outside it, well: giving good context, breaking work down, verifying and reviewing their output, knowing when not to trust it, and managing security and licensing risk.
TargetNovice
AI-assisted development (Android)
Using AI coding assistants and agents, in Android Studio and outside it, well: giving good context, breaking work down, verifying and reviewing their output, knowing when not to trust it, and managing security and licensing risk.
Learn Android Studio's AI agent and a habit for checking AI code
Read 'About AI in Android Studio', developer.android.com/studio/gemini/overview (the tiers, the free individual option with a smaller context window, the note that you can use the agent of your choice, and the Android Studio version it needs), 'Data and privacy', developer.android.com/studio/gemini/data-and-privacy (the free edition may use code you type into the chat for training; what you choose to share), and 'Best practices', developer.android.com/studio/gemini/best-practices. Then read Simon Willison's 'Here's how I use LLMs to help me write code', simonwillison.net/2025/Mar/11/using-llms-for-code/, especially 'Account for training cut-off dates', 'Context is king' and 'You have to test what it writes!'. The same habits apply to any assistant you use outside Android Studio, such as Claude Code, Cursor or Copilot; you never need a paid one. Before using an assistant on a real project, find your team's rules: which tools are allowed and what may be shared (ask your mentor if nothing is written down). On your company's code, use the free edition only if your team's rules allow it, because it may train on what you type; otherwise use the tool your team approves, or a test project. Then write a personal checklist of what you do before committing AI output (what you read line by line, what you build and run, which tests you run, what you look up on developer.android.com, what you never paste into a prompt) and apply it to one piece of code an assistant wrote for you on a real or test project. Evidence: your checklist, the team's rules (or a note that there are none), the code before and after your check (a commit or pull request link), and at least one thing the checklist caught, reviewed with your mentor.
Ship a well-scoped Android ticket with AI help, checked and disclosed
Pick a well-scoped ticket on a real or test project (a new Empty Activity Compose project is enough), for example one composable with a preview, a Room entity and DAO with a test (an instrumented test on an emulator), a mapper from an API model to a UI model with its tests, a lint warning, or a Gradle build error, and use an AI assistant for part of it on your own. Use the agent in Android Studio (developer.android.com/studio/gemini/agent-mode; a free edition exists) or any tool your team allows; no paid tool is needed (on company code, use the free edition only if your team's rules allow it, since it may train on what you type), and if your company has turned AI off, do this on a test project or an open-source sample such as Now in Android. Follow your team's rules and keep secrets, `local.properties`, keystores and real user data out of prompts. Apply your checklist: read every line, build, run the screen on an emulator, run the tests, add or update tests for the AI-written parts, and change what you do not understand or agree with. For each library or API you do not know, find it on developer.android.com or in its own documentation, check that it exists at your `minSdk`, and check that the dependency and version exist (in a browser on Google's Maven repository, maven.google.com/web/index.html, for AndroidX and other Google artifacts, or on Maven Central, central.sonatype.com/, for other libraries). Run `./gradlew lint` and fix what it reports on the AI-written code. In the pull request description, say which parts came from AI and how you checked them. Evidence: the pull request link with the AI disclosure and passing tests, and a note of what you changed in the AI output and why.
Debug a crash with AI help without leaking secrets or user data
Use an assistant to explain and fix a crash and keep secrets and user data out of what you send. On a test project, seed one: a button whose handler throws an exception inside a function that also logs a made-up email address and a made-up token such as `FAKE-TOKEN-1234` (never a real value). Run the app and copy the Logcat stack trace. Before you send anything, list what the trace and nearby code contain (tokens, email addresses, URLs with keys, file paths with your name) and remove them from your copy of the trace. Read 'Configure context sharing with .aiexclude files', developer.android.com/studio/gemini/aiexclude, and add an `.aiexclude` file that blocks files in your project that must never be shared (for example `local.properties`, `*.jks`, `*.keystore` and `google-services.json`; check that the patterns match your project). It blocks whole files, not lines inside a file you share, so also take the seeded values out of the function the agent will read. Look at 'Manage agent permissions', developer.android.com/studio/gemini/permissions, for what the agent may read and run. On the free edition the data and privacy page says chat code may be used to train Gemini. Do not use Logcat's 'Fix with AI' for this step: developer.android.com/studio/gemini/analyze-runtime-errors-with-logcat says it sends the relevant information to the agent, so you cannot redact first. Paste your redacted trace into the Agent chat (or any tool your team allows) and ask for the cause. Check its explanation against the code yourself before you apply its fix, and add a test that fails without the fix. Then try 'Fix with AI' on a second crash that has no sensitive values, and note what it did and what you could not control. Evidence: the redacted prompt you sent, your `.aiexclude`, the explanation you checked and what you found, the fix and its test, your note on 'Fix with AI', and your mentor's comments.
Soft Skills
01Communication
Clearly and effectively conveying information, setting expectations, and aligning with others in written and verbal form.
TargetNovice
Communication
Clearly and effectively conveying information, setting expectations, and aligning with others in written and verbal form.
Spot a missing BLUF and rewrite it
Read Wikipedia's article on the BLUF (bottom line up front) technique, en.wikipedia.org/wiki/BLUF_(communication), which explains the practice of opening a message with its key information, responding to the five Ws (who, what, where, when, why), before any narrative detail or supporting context. Take this draft status update: 'Hey team, just wanted to give an update on the onboarding redesign. We've been working on wireframes this week and met with two stakeholders. There were some questions about scope timing. Let me know if you have questions.' Identify what's missing per the BLUF technique, then rewrite its opening sentence as a proper BLUF. Evidence: your written note on what was missing plus the rewritten BLUF opening sentence.
Write a status update that needs zero follow-ups
Using the BLUF technique from the previous exercise, write a full status update (what's done, what's next, what's blocked) for a real or test project you're working on. Show it to a real reader who doesn't already know the details and ask them to tell you what's happening without asking you a single follow-up question. Evidence: the status update plus a note on whether your reader needed a follow-up question, and what it was if so.
02Collaboration
Working well with others: understanding different perspectives, managing shared priorities, and being a reliable team member.
TargetNovice
Collaboration
Working well with others: understanding different perspectives, managing shared priorities, and being a reliable team member.
Confirm what 'reliable help' means for this ask
Read Google's re:Work guide on team effectiveness, rework.withgoogle.com/intl/en/guides/understand-team-effectiveness, which names dependability (reliably completing quality work on time) as one of the five dynamics that separate effective teams. Pick one specific task a teammate has asked you for help with recently, or one you expect to be asked for soon, and write down exactly what 'reliably complete quality work on time' means for that ask: the concrete deliverable, the deadline, and how you'll confirm to the teammate that it's done. Evidence: your write-up naming the task, the deliverable, the deadline, and your confirmation plan.
Help a teammate and name their part in it
The next time a teammate asks you for help with a specific task (or, if none is pending, ask one to give you a real task to help with), do the work, then when it's shared with others (a demo, a doc, a status update, a message to the team), explicitly name your teammate's contribution alongside your own rather than presenting it as solo work. Evidence: the completed help plus a copy or screenshot of the moment you shared credit (the message, doc line, or demo note), showing both your names attached to the shared work.
03Conflict management
Navigating and resolving workplace disagreement in a way that keeps the team functional and relationships intact.
TargetNovice
Conflict management
Navigating and resolving workplace disagreement in a way that keeps the team functional and relationships intact.
Learn what intellectual humility looks like in a disagreement
Read Greater Good Magazine's 'What Does Intellectual Humility Look Like?,' greatergood.berkeley.edu/article/item/what_does_intellectual_humility_look_like, which frames disagreement as healthy when handled with intellectual humility, being open to other people's views instead of contentious about them, and willing to reconsider your own position when shown new evidence. As you read, pull out one behavior the article names for sharing a differing opinion without it becoming contentious, and one behavior it names for updating your own view when shown new evidence. Evidence: the two behaviors you pulled out, each in your own words, with a one-line example of how you'd use it.
Document a real disagreement you handled
Recall a real disagreement you had in a work discussion recently (a design decision, a process choice, a scope call; use the most recent real one you can, or a realistic one if nothing comes to mind) and, with a mentor or reviewer available to read it, write a short account of what your differing opinion was, how you shared it respectfully, and whether any new information came up that changed your mind and how you responded to it. Evidence: the written account plus your reviewer's confirmation that the disagreement, as described, was shared respectfully and that any view change was genuine rather than just conflict avoidance.
04Planning / Time management
Managing your own time and, at higher levels, the team's: prioritizing work so it's delivered efficiently and predictably.
TargetNovice
Planning / Time management
Managing your own time and, at higher levels, the team's: prioritizing work so it's delivered efficiently and predictably.
Learn why context-switching breaks your task list
Read Psychology Today's 'The True Cost of Multi-Tasking,' www.psychologytoday.com/us/blog/brain-wise/201209/the-true-cost-of-multi-tasking, which argues that what feels like multitasking is actually rapid task-switching, and that switching quietly derails commitments you'd otherwise meet by costing up to 40% of your productive time. Then look at your own task list for the coming week and mark the one task you know you'd normally split across multiple sittings instead of finishing in one go, and write 2-3 sentences on the single block of time you'll protect for it instead. Evidence: your task list with the marked task, plus the 2-3 sentence plan for protecting a single block of time for it.
Apply the capture-and-clarify step of GTD to your own list
Read the official overview of the Getting Things Done method, gettingthingsdone.com/what-is-gtd/, focusing on the 'capture' and 'clarify' steps for turning loose commitments into a trustworthy task list. Then take every commitment currently living in your head, chat threads, or email for your individually-scoped work and capture them into one list, clarifying each into a single concrete next action rather than a vague reminder. Evidence: your captured list with each item rewritten as a concrete next action.
Run your own task list for a real work week and report what nearly slipped
For a real (or test) week of individually-scoped work, keep a single task list of your commitments, updating it daily as items get added or finished, and share the starting list with your mentor or reviewer so they know what you're committing to before the week begins. At the end of the week, identify the one commitment you nearly missed and write 2-3 sentences on what caused the near-miss and what you changed on your list to catch it in time. Evidence: your week's task list, the 2-3 sentence note on the near-missed commitment, and your mentor's confirmation they saw your starting list.
05Self-Direction
Motivating yourself to complete work effectively, on time, and without close supervision.
TargetNovice
Self-Direction
Motivating yourself to complete work effectively, on time, and without close supervision.
Read what makes check-ins land, then apply one habit
Read Culture Amp's guide to managing up, www.cultureamp.com/blog/managing-up-importance, which explains that keeping your manager informed in the right way, adapted to their preferred communication style and with issues flagged early rather than saved for a review, is something you actively manage, not something that just happens on its own. Pick one small task you're currently working on with light check-ins from your manager or lead, then pick one habit from the article you don't yet do consistently, and write 2-3 sentences on exactly how you'll change your next check-in on that task because of it. Evidence: your 2-3 sentence write-up naming the task, the habit, and the specific change you're making to your next check-in.
Log your check-ins on one assigned task and review the pattern with your manager
Pick one small task assigned to you and, for its full duration, keep a short log every time you check in with your manager or lead: the date, what you reported, and anything that came up. When the task is done, sit down with your manager and walk through the log together, asking them directly whether the check-in cadence and content felt right, or whether they ever had to chase you for an update instead of you offering one. Evidence: the check-in log covering the whole task, plus your manager's written or verbal reaction on whether the cadence worked and whether they ever had to ask rather than being told.
06Estimating (Android)
Predicting the realistic effort to build and ship Android work (sizing tickets, running spikes on unknowns, flagging risks such as device and OS-version testing, Play review and rollout timing) to inform sprint plans, roadmaps and commitments.
TargetNovice
Estimating (Android)
Predicting the realistic effort to build and ship Android work (sizing tickets, running spikes on unknowns, flagging risks such as device and OS-version testing, Play review and rollout timing) to inform sprint plans, roadmaps and commitments.
Build your reference scale from past Android tickets
Read Mike Cohn's 'What Are Story Points?', www.mountaingoatsoftware.com/blog/what-are-story-points, which explains a relative estimate as one number that combines the amount of work, its complexity, and its risk and uncertainty, where the ratios matter more than the numbers. Then look through recently finished Android tickets on a real or test project (your team's board, or your own past tasks; on a test project, ask your mentor for a few they have done) and pick three reference tickets: a small, a medium and a large one, in whatever unit your team uses (points, T-shirt sizes or days). For each, note what made it that size in Android terms, for example the number of screen states, phone and tablet layouts and the largest font setting, Compose or View code, runtime permissions, an API that behaves differently across Android versions, a new or an existing library, process death and rotation, and unit and UI tests. Hide names, customer data and anything private from the tickets you share. Evidence: your three reference tickets with links and sizing notes, checked by a senior or your mentor.
Estimate your own Android tickets in sprint planning and compare with actuals
In your next sprint planning (on a test project, a mock planning session with your mentor as the senior, who then assigns you three small tickets from your list to build within a week), estimate at least three well-defined Android tickets assigned to you (e.g. add a settings switch that is saved, a detail screen for a list item, pull to refresh on a list). Write your numbers down before you hear anyone else's, comparing each ticket with your reference tickets from the exercise above. For each, write what your estimate includes: loading, empty and error states, rotation, the largest font size (the biggest text size in the device's font settings) and a tablet or foldable window (a wide screen area, such as the inner screen of a foldable phone), the oldest Android version your app supports, tests, fixes from code review, and checking on an emulator and, if your team has one, a real device. Then make the sanity check happen: send a senior your numbers with what each includes before or right after planning and ask them to reply in writing where they would have a different number and why. Note where you disagreed and which number you kept. At the end of the sprint (on a test project, the week you build the three tickets) log your own time per ticket as the actual effort and compare. Refer to the senior by role, no names, and hide customer data from the tickets you share. Evidence: a table with each ticket link, your estimate and what it covered, the senior's written comment, the actual effort, and two or three sentences on what you will include next time.
07Critical Thinking / Questioning (Android)
Thinking a technical problem through before solving it: questioning requirements, weighing trade-offs and cost against value, and challenging the first workable answer, including one an AI suggests.
TargetNovice
Critical Thinking / Questioning (Android)
Thinking a technical problem through before solving it: questioning requirements, weighing trade-offs and cost against value, and challenging the first workable answer, including one an AI suggests.
Learn to ask questions that surface what an Android ticket leaves out
Read Julia Evans's 'How to ask good questions', jvns.ca/blog/good-questions/, especially the sections 'State what you know', 'Ask questions where the answer is a fact' and 'Ask questions to show what's not obvious'. Then take an Android ticket you already finished and read it again as if you hadn't built it yet. No ticket on your project, or a test project? Ask your mentor for a short one-paragraph request (for example 'show the user's saved notes in a list and let them delete one', or 'remind the user about tomorrow's tasks'), build a small version of it first, and use the mentor's text as the ticket. List five questions you now wish you had asked the ticket owner before starting, for example which Android versions the feature must work on, how it should look on a tablet or a foldable and when the phone is rotated, what happens offline or when a request fails, what the screen shows when the user denies a permission it needs, how it behaves with the largest font size, or what 'back' should do. Rewrite each one using the article's advice so the owner can answer it in a line, for example: 'I'm assuming that if the user denies notifications we show a message with a button to the settings. Is that right?' Mark which answers would have changed what you built. Last, read Android's Compose migration page, developer.android.com/develop/ui/compose/migrate/strategy, choose one of its steps (build new screens in Compose, or replace existing features one screen at a time) and write what it costs and what it gains. Evidence: the ticket link (or your mentor's request text), your five rewritten questions, your cost and gain note, and your mentor's comments on them.
Question an unclear Android ticket before you start building
For your next two Android tickets (on a test project, two short requests from your mentor like the one in the exercise above), stop before writing code and list what the ticket doesn't say, phrasing each question the way you practiced in the exercise above. Always check loading, empty and error states and what happens when the user denies a permission the feature needs (if it needs none, say so), then pick at least three more that fit the ticket: the oldest Android version the app supports and whether the feature needs anything newer; phone, tablet, foldable and rotation; what happens offline, on a slow connection, or when the app is sent to the background or its process is killed halfway through; the largest font size, TalkBack, long or translated text and right-to-left languages; dark theme; or anything Google Play may ask about, such as a new permission, a paid feature, sign-in or new data the app collects. Send the questions to the ticket owner (product manager, designer or lead; on a test project, your mentor playing one), get answers, and note which ones changed what you built. Evidence: for each ticket, your list of questions, the answers you got (a linked comment thread is fine, with names and email addresses hidden; on a test project, your mentor's replies), and one or two sentences on what you would have built wrong without asking.
Name the trade-off between two ways to build it and talk it through with a senior
Pick a ticket on a real or test project where you can see two workable ways to build it, for example a new screen in Compose or in Views in a codebase that has both (the migration page you read above says Compose and Views can co-exist, with building new screens in Compose as the first step), a Material component or a custom one the design shows, a library or a small helper of your own (e.g. date formatting, image loading), a newer API behind a version check or the older one that works everywhere, or extending an existing screen or making a new one. Before choosing, write a short note: what each option costs (time, which Android versions it works on, code to maintain, app size, accessibility and dark theme you would have to build yourself) and what each gains, and which one you lean toward. Then talk it through with a senior teammate or your mentor and record where they agreed, what they questioned and the final choice. Evidence: your trade-off note, a summary of the conversation with the senior's challenges and your answers (by role, no names), and a link to the PR with the option you built.