Android Activity Launch Mode
Source: Android Docs — Tasks and the back stack 📌 Tasks & the Back Stack Before diving into launch modes, it’s important to understand tasks and the back stack. A task is a collection of ...
Source: Android Docs — Tasks and the back stack 📌 Tasks & the Back Stack Before diving into launch modes, it’s important to understand tasks and the back stack. A task is a collection of ...
Jetpack Compose renders UI through a pipeline of 3 sequential phases that always run in the same order: Composition → Layout → Drawing. Compose can intelligently skip a phase when no changes are ne...
Hi there, I’m Phat, an Associate Android Engineer based in Ho Chi Minh City.
Sources: Activity Lifecycle · Fragment Lifecycle 🔵 Activity Lifecycle An Activity has 6 core lifecycle callbacks invoked by the system as it transitions between states. Lifecycle Flow onCrea...
The Presentation Layer is where your app meets the user — it handles UI rendering, user interactions, and state management. Choosing the right architectural pattern for this layer has a significant...
This document is based on the concepts outlined in the post Leetcode Patterns and provides a summarized interpretation prepared with the assistance of Claude. LeetCode Patterns: Easy to Hard Prog...
Jetpack DataStore is a data storage solution that allows you to store key-value pairs or typed objects with protocol buffers. It’s based on Kotlin coroutines and Flow to store asynchronousy, consis...
1. What is SOLID principles? The SOLID principles are a set of five fundamental design guidelines that help developers create software that is easy to maintain, extend, and understand. Five princ...
Android Clean Architecture is typically divided into three layers: Presentation, Domain, and Data. flowchart LR Domain ~~~ Data --> Domain Data ~~~ Domain UI-Layer --> Domain 1. Pre...
Fail fast fail last Design pattern Constraint layout bad practices, barrier, group Lazy and lateinit Abuse extenstion function Function parameter best practices Pre hook, run test befor...