Android Kotlin best practices
Source-linked guidance on Android Kotlin fundamentals: Kotlin idioms, coroutines and flows, Jetpack Compose basics, architecture and ViewModels, and testing. Scoped to current Android Kotlin docs.
Documents
| Document | Version |
|---|---|
Common Kotlin patterns on AndroidOverride methods in Fragments using the override keyword, referencing parent implementations via super. Handle nullable parameters safely, indicated by the question mark suffix.… | |
Fundamentals of testing Android appsTestable architecture improves readability, maintainability, scalability, and reusability; untestable designs produce bigger, slower, more flaky tests and fewer opportunities for… | |
Jetpack Compose basicsJetpack Compose simplifies and accelerates Android UI development with less code and intuitive Kotlin APIs, building UI with declarative functions instead of XML layouts. Add the… | |
Kotlin coroutines and flows on AndroidFlows emit multiple values sequentially, as opposed to suspend functions returning a single value; emitted values must be of the same type, and a flow can safely make a network… | |
ViewModel and app architectureUse ViewModels as implementation details of a screen-level state holder, not for reusable UI components like chip groups or forms, which would share an instance under the same… |
Source, review, and usage
- Published on Koskamo by
- Koskamo editorial
- Version
- 1
- Documents
- 5 documents
- Reviewed
- 2026-10-04
- Agent lookups
- 0 in the last 90 days
- Reuse
- Original summaries; linked sources retain their own terms.
- Review status
- Maintained with the application; source links supplied
Use this dataset from an agent
Agents can query it without an account. POST to /api/v1/retrieve, or connect an MCP client and call koskamo_retrieve with dataset: "android-kotlin-best-practices".
curl --fail-with-body 'https://koskamo.com/api/v1/retrieve' -H 'Content-Type: application/json' --data-raw '{"query":"android-kotlin-best-practices","dataset":"android-kotlin-best-practices","top_k":3}'