Create a Mobile App
ActivitiesProjects
Solve a problem
Creating a mobile app means shaping an interaction for screens that can change size and orientation, then making sure the information behind those screens survives ordinary use. Apple’s SwiftUI learning path moves from views into layout, navigation, interactive content, and data. Android’s design hub organizes its guidance around foundations, styles, layout and content, behavior, components, home-screen features, and accessibility.
Choose a layout that fits the content
A layout should help people understand what they can do next. Android’s common-layout examples make a useful distinction: a list-detail pattern serves a collection where selecting an item opens its explanation, while a feed presents comparable items in a list or grid. On a compact screen, list-detail may show the list or the selected detail; on a larger display, both can fit at once. A support pane, sheet, or dialog can keep secondary controls available without taking over the main content. The guide presents these patterns as starting points tied to particular use cases and screen sizes. The subject of the app should determine whether a person is scanning many similar entries, opening one item for depth, or changing a secondary setting.
Keep information alive beyond the screen
An app should not depend on one screen to preserve the only copy of important state. Android notes that the operating system can remove an app process when resources are needed, and that rotation, resizing, or folding can recreate interface components. Its architecture guidance recommends storing application state in data models outside those short-lived components, so the interface can be rebuilt from the current data. That matters whenever someone edits, saves, or returns to information: the app should restore the state it is designed to preserve rather than relying on one screen remaining in memory.
Android describes a UI layer for displaying information and handling interaction, and a data layer for application data and business logic. A separate domain layer is optional when it simplifies complex or reused logic. The recommendation to keep a single source of truth and move data toward the interface while user actions flow back through the state owner gives those layers a practical purpose: a button changes app state, and the screen then reflects that state instead of carrying a separate, competing version of it. Android presents these as recommendations to size to an app’s complexity.
Decide how much code the platforms share
SwiftUI is one native route for Apple platforms: developers describe the desired interface, and the framework builds the UI from views, layout, navigation, and data. Apple’s learning pathway pairs that work with Xcode for development, testing, and distribution. Flutter represents a different tradeoff: it documents building for multiple supported targets from one codebase, while noting that particular platform capabilities can still require extra tooling, plugins, or platform-specific code. Shared implementation can reduce duplication, but the Flutter documentation does not promise identical setup or feature support everywhere. Choosing a route means considering both what can be shared and what still depends on the target platform.
Test the transitions people actually use
Android’s testing guidance distinguishes local unit tests from instrumented tests on a device or emulator, and points to checks for UI behavior, screenshots, and screen-size variation. Its architecture recommendations also give examples such as repository and ViewModel tests, navigation regression checks, and performance measurements. The useful lesson is to test a feature at the level where it can fail: data behavior on its own, the interface responding to a user action, and the screen after navigation or a size change. For a list-detail layout, that means checking how selection and navigation behave on compact and larger displays.
