A notes app accompanying Making Android Apps Adaptive: Activity Embedding.
The collection, editor and empty-detail screen are separate Activities, each rendered with Compose. WindowManager arranges them; Koin provides their dependencies through its Kotlin DSL.
The editor fills the smaller window. Back returns to the collection.
The two Activities share the window. The divider starts at 40/60 and can be dragged on devices with Window SDK extension 6 or later.
Download the APK. Notes are stored locally. The optimized APK is signed with a development key.
Android 26 or later is required. Embedding depends on device support and available window space; otherwise, the app uses ordinary list-to-editor navigation.
Use JDK 21 and Android SDK 37.
./gradlew :app:assembleAdaptiveDebug :app:assembleClassicDebugadaptiveenables Activity Embedding:io.github.lucf15.adaptivenotes.classicuses the same screens without embedding:io.github.lucf15.adaptivenotes.classic.
Both variants can be installed together and keep separate note storage.
- XML rules: Activity pairs, placeholder, size limits and draggable dividers.
- Startup: rule registration and optional layout-state saving.
- Manifest: Activity declarations and embedding properties.
- Editor: note selection through initial and subsequent intents.

