How tungnk123/android-cheat-sheet works
This repository is not an application runtime; it is a static Android knowledge base. Its architecture is organized around Markdown documentation, with a few Kotlin sample files and PDF reference materials. The main “entrypoint” is the root README.md, which acts as the catalog and navigation layer.
The top-level structure is topic-first rather than feature-first. Each folder represents a learning domain, and most domains are independent documentation islands. There is no shared build system, dependency graph, or deployment pipeline visible in the tree.
The core Android fundamentals live under android-basics/. This is the largest conceptual subsystem and covers platform primitives such as activity, context, intent, layout, manifest, navigation, RecyclerView, SDK versions, task/back-stack/launch modes, ViewModel, and platform architecture. These topics collectively describe the app lifecycle and UI/navigation foundation.
android-basics/android-components/ is the most implementation-oriented subarea in the basics section. It focuses on Android component types and their roles in the platform: Activity, Service, Broadcast Receiver, and Content Provider. The nested examples/ folder contains Kotlin snippets for those components, making this the primary “code sample” boundary in the repo.
Architecture and app-structure concepts are separated from primitives. The repo includes higher-level guidance in areas like android-jetpack/, android-guidelines/, design-patterns-in-android/, dependency-injection/, and system-design/. Together these describe how app modules, state holders, DI, and design patterns fit around the Android component model.
State, data, and async behavior are grouped into a separate conceptual layer. data-management/ covers storage patterns such as Shared Preferences, while kotlin-coroutines/, kotlin-flow/, and reactive-programming/ cover asynchronous and stream-based data flow. In an architecture diagram, these sit between repositories/storage and UI consumers.
Language foundations are isolated from Android-specific concerns. The java/ and kotlin-basics/ folders provide syntax and language behavior references, while functional-programming/ adds a more general programming model. These are supporting layers rather than Android subsystems, but they underpin the code examples and concepts elsewhere.
Networking and security are treated as separate operational concerns. android-networking/ covers client-server communication patterns, and android-security/ covers app protection and hashing. android-background/ and android-optimization/ extend the operational side with execution constraints and performance considerations.
Testing is present as a conceptual quality gate rather than a dedicated framework project. android-testing/ contains error-handling and test-related notes, which suggests the repo emphasizes practices and scenarios over runnable test suites.
There is a documentation/learning asset branch under android-books/. This folder stores PDFs that support the knowledge base, so it behaves like a reference library rather than code. It is a sidecar dependency for reading, not a component in the Android app flow.
random-notes/ is a chronological, append-only journal of daily notes. Architecturally, it is separate from the curated topic tree and should be treated as an unstructured content stream, useful for tracking ongoing learning but not for the main repository map.
At the root, Welcome.kt is a lone Kotlin file outside the documentation hierarchy. Based on placement alone, it appears to be a standalone sample or scratch file rather than part of a coordinated module structure.
For an architecture diagram, the main boundaries are: root navigation (README.md), curated topic documentation, executable examples under android-components/examples, reference assets under android-books, and the daily note stream under random-notes. The repo’s “data flow” is educational rather than runtime: foundational Android concepts feed into architecture patterns, which feed into state/data/async topics, then into operational topics like networking, security, optimization, and testing.
Main entry points: README.md README · android-jetpack.md Jetpack · shared-preferences.md Data mgmt · sequence.md Kotlin basics
Components 34
Curated docs
Main topic-first Android knowledge base organized as independent documentation islands.
- README · Repository entrypoint and navigation layer.
README.md - Android basics · Core Android platform primitives and app lifecycle concepts.
- Components · Android component model: Activity, Service, Receiver, and Provider.
android-basics/android-components/android-components.md - Examples · Standalone Kotlin examples for component behavior.
android-basics/android-components/examples/activity.kt - Platform arch · Higher-level view of Android platform structure and execution model.
android-basics/android-platform-architecture/android-platform-architecture.md - Context · Application and component context behavior.
android-basics/context/context.md - Intent · Intent-based communication and navigation contracts.
android-basics/intent/intent.md - Layout · View/layout structure and screen composition.
android-basics/layout/layout.md - Manifest · App declaration, components, and platform configuration.
android-basics/manifest/manifest.md - Navigation · Screen-to-screen flow and back-stack concepts.
android-basics/navigation/navigation.md - RecyclerView · Scrollable list and item rendering patterns.
android-basics/recyclerview/recyclerview.md - SDK versions · Android API level and versioning references.
android-basics/sdk-versions/sdk-versions.md - Task stack · Task, back stack, and launch mode behavior.
android-basics/task-backstack-launchmodes/task-backstack-launchmodes.md - ViewModel · Lifecycle-aware UI state and model management.
android-basics/viewmodel/android-viewmodel.md
Support topics
Language, patterns, architecture, and operational concerns that support the main Android fundamentals.
- Guidelines · Android practice and style guidance.
android-guidelines/android-guidelines.md - Jetpack · Modern Android app architecture and libraries.
android-jetpack/android-jetpack.md - Patterns · Common design patterns in Android contexts.
design-patterns-in-android/design-patterns.md - DI · Dependency injection concepts and usage.
dependency-injection/dependency-injection.md - System design · Broader system design and scalability concepts.
system-design/system-design.md - Data mgmt · Persistent data handling and storage patterns.
data-management/shared-preferences/shared-preferences.md - Coroutines · Structured concurrency and asynchronous execution.
kotlin-coroutines/coroutine.md - Flow · Reactive stream and cold/hot flow concepts.
kotlin-flow/kotlin-flow.md - Reactive · Reactive programming concepts bridging state and events.
reactive-programming/reactive-programming.md - Kotlin basics · Core Kotlin behaviors and utility topics.
kotlin-basics/sequence.md - Java basics · Java syntax and language behavior references.
java/java-basic.md - Functional · Functional programming concepts used across the repo.
functional-programming/functional-programming.md - Networking · Client-server communication and network behavior.
android-networking/android-networking.md - Security · Hashing and Android security concepts.
android-security/android-security.md - Background · Background execution constraints and behavior.
android-background/android-background.md - Optimization · Performance tuning and efficiency notes.
android-optimization/android-optimization.md - Testing · Testing and error-handling notes.
android-testing/error-handling.md
Reference assets
Non-Markdown learning materials and the append-only note stream.
- Books · PDF reference materials supporting the learning corpus.
android-books/android-books.md - Daily notes · Append-only chronological learning notes.
random-notes/2024-10-26.md - Welcome.kt · Lone Kotlin file outside the documentation tree.
Welcome.kt
Connections 34
- README → Android basics: catalogs · Root README navigates the core Android fundamentals.
- README → Jetpack: catalogs · Root README indexes architecture guidance.
- README → Guidelines: catalogs · Root README indexes practice guidelines.
- README → Networking: catalogs · Root README indexes operational Android topics.
- README → Books: catalogs · Root README points to reference materials.
- README → Daily notes: catalogs · Root README includes the daily note stream.
- README → Welcome.kt: includes · Standalone Kotlin sample sits at the repository root.
- Android basics → Components: organizes · Component model is the main implementation-oriented branch inside basics.
- Components → Examples: illustrates · Kotlin snippets demonstrate component behavior.
- Android basics → Platform arch: frames · Platform architecture contextualizes the basics topics.
- Android basics → Context: covers · Basics includes context behavior.
- Android basics → Intent: covers · Basics includes intent communication.
- Android basics → Layout: covers · Basics includes UI layout.
- Android basics → Manifest: covers · Basics includes manifest configuration.
- Android basics → Navigation: covers · Basics includes navigation and back-stack flow.
- Android basics → RecyclerView: covers · Basics includes list UI patterns.
- Android basics → SDK versions: covers · Basics includes platform versioning.
- Android basics → Task stack: covers · Basics includes task and launch mode behavior.
- Android basics → ViewModel: covers · Basics includes ViewModel and state handling.
- Data mgmt → Coroutines: pairs with · Storage concepts sit alongside async execution models.
- Data mgmt → Flow: pairs with · Storage concepts connect to stream-based state delivery.
- Data mgmt → Reactive: aligns with · Data management relates to reactive data flow.
- Jetpack → ViewModel: centers on · Jetpack architecture often builds around ViewModel.
- Jetpack → DI: uses · Jetpack architecture commonly depends on DI.
- Patterns → DI: reinforces · Design patterns and DI support app structure.
- System design → Jetpack: connects · System design frames app-level architecture choices.
- Kotlin basics → Coroutines: supports · Kotlin language concepts underpin coroutine usage.
- Kotlin basics → Flow: supports · Kotlin language concepts underpin Flow usage.
- Java basics → Android basics: supports · Java reference material supports Android platform topics.
- Functional → Reactive: supports · Functional concepts inform reactive programming.
- Networking → Security: depends on · Networking and security are operationally coupled.
- Background → Optimization: informs · Background execution constraints affect performance tuning.
- Optimization → Android basics: optimizes · Performance concerns cut across foundational Android topics.
- Testing → Guidelines: aligns with · Testing notes complement practice guidance.