Skip to content

About

Fieldnotes: an Android Activity Embedding sample with Compose screens, Koin DSL, durable drafts, and classic/adaptive variants.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Fieldnotes notebook icon

Fieldnotes

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.

Folded: editor only

The editor fills the smaller window. Back returns to the collection.

Folded device: the editor occupies the app window

Unfolded: collection and editor

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.

Unfolded device: collection and editor with a draggable divider

Run the sample

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.

Build

Use JDK 21 and Android SDK 37.

./gradlew :app:assembleAdaptiveDebug :app:assembleClassicDebug
  • adaptive enables Activity Embedding: io.github.lucf15.adaptivenotes.
  • classic uses the same screens without embedding: io.github.lucf15.adaptivenotes.classic.

Both variants can be installed together and keep separate note storage.

Code

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

Android Activity Embedding documentation.

License

Apache 2.0.

About

Fieldnotes: an Android Activity Embedding sample with Compose screens, Koin DSL, durable drafts, and classic/adaptive variants.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages