AndroidPub
Author

AndroidPub

Senior Android Developer & Interviewer, regularly sharing original tech articles, learning resources, and practical interview guides. Welcome to follow and contribute!

86
Articles
0
Likes
426
Views
0
Comments
Recent Articles

Latest from AndroidPub

86 recent articles
AndroidPub
AndroidPub
Jul 21, 2025 · Fundamentals

How Kotlin’s New Rich Errors Transform Error Handling in 2025

KotlinConf 2025 unveiled Rich Errors, a new union‑type based error‑handling model that replaces try‑catch and Result with explicit success‑or‑error return types, improving type safety, readability, and testability for Kotlin developers.

KotlinKotlin 2.4Rich Errors
0 likes · 7 min read
How Kotlin’s New Rich Errors Transform Error Handling in 2025
AndroidPub
AndroidPub
Jul 17, 2025 · Fundamentals

Mastering Kotlin’s runCatching: A Cleaner Alternative to try‑catch

This article explores Kotlin’s runCatching function, compares it with traditional try‑catch‑finally, demonstrates its usage with practical code examples, explains the Result type and its methods, and provides best‑practice guidelines for resource management and when to prefer runCatching over classic exception handling.

Exception HandlingFunctional ProgrammingKotlin
0 likes · 14 min read
Mastering Kotlin’s runCatching: A Cleaner Alternative to try‑catch
AndroidPub
AndroidPub
Jul 14, 2025 · Mobile Development

Will Swift Conquer Android? Inside Apple’s New Android Workgroup

Apple’s newly announced Swift Android Workgroup aims to bring Swift natively to Android, sparking industry debate over a potential shift in mobile development, the strategic motivations behind Apple’s move, Kotlin’s response, and the broader impact on developers’ skill sets and career prospects.

AndroidCross-PlatformKotlin
0 likes · 8 min read
Will Swift Conquer Android? Inside Apple’s New Android Workgroup
AndroidPub
AndroidPub
Jul 9, 2025 · Mobile Development

Avoid These 10 Common Jetpack Compose Side‑Effect Mistakes

This article examines the most frequent side‑effect errors developers make in Jetpack Compose, explains why each mistake leads to performance or correctness issues, and provides clear, code‑driven solutions to help both beginners and seasoned Android developers write efficient, reliable UI code.

AndroidCompose Best PracticesDisposableEffect
0 likes · 13 min read
Avoid These 10 Common Jetpack Compose Side‑Effect Mistakes
AndroidPub
AndroidPub
Jul 8, 2025 · Mobile Development

When to Choose Kotlin Channel Over Flow? A Deep Dive with Code Samples

This article compares Kotlin Channel and Flow, explains their design differences, outlines when to prefer each tool, provides step‑by‑step usage instructions, showcases four channel types, presents real‑world Android examples, and covers advanced patterns and exception handling for robust coroutine communication.

AndroidChannelCoroutines
0 likes · 19 min read
When to Choose Kotlin Channel Over Flow? A Deep Dive with Code Samples
AndroidPub
AndroidPub
Jul 7, 2025 · Mobile Development

When to Use Kotlin Channel vs Flow: A Practical Guide

This article compares Kotlin Channel and Flow, explains their distinct characteristics, shows when to prefer each in Android coroutine programming, provides step‑by‑step usage, multiple channel implementations, real‑world examples, advanced fan‑in/fan‑out patterns, and robust exception handling.

AndroidChannelCoroutines
0 likes · 20 min read
When to Use Kotlin Channel vs Flow: A Practical Guide
AndroidPub
AndroidPub
Jul 3, 2025 · Mobile Development

Mastering Kotlin Coroutine Cancellation: Avoid Zombie Coroutines and Hidden Bugs

This article explains how Kotlin coroutine cancellation works, why catching CancellationException can create zombie coroutines, and provides concrete patterns—using isActive, coroutineContext.ensureActive(), and proper try‑catch placement—to reliably stop repeating tasks without resource leaks.

AsyncBest PracticesCancellationException
0 likes · 9 min read
Mastering Kotlin Coroutine Cancellation: Avoid Zombie Coroutines and Hidden Bugs
AndroidPub
AndroidPub
Jun 30, 2025 · Mobile Development

Mastering Shared Element Transitions in Jetpack Compose: From Basics to Advanced Tricks

Explore the complete guide to implementing shared element transitions in Jetpack Compose, covering essential APIs like SharedTransitionLayout, Modifier.sharedElement, and Modifier.sharedBounds, with detailed code examples, common pitfalls, container transforms, resize modes, and practical solutions for smooth, hero‑style animations across Android screens.

Android UIJetpack Composeshared element transition
0 likes · 19 min read
Mastering Shared Element Transitions in Jetpack Compose: From Basics to Advanced Tricks
AndroidPub
AndroidPub
Jun 26, 2025 · Fundamentals

Why Kotlin Data Class Lambdas Break Equality and How to Fix It

This article explains how Kotlin treats lambda expressions as distinct objects, causing two data class instances with identical lambda bodies to be unequal, demonstrates the problem with code examples, and shows how extracting the lambda into a shared reference restores proper equality, highlighting implications for equals, hashCode, and Compose.

Code ExampleKotlindata class
0 likes · 3 min read
Why Kotlin Data Class Lambdas Break Equality and How to Fix It
AndroidPub
AndroidPub
Jun 23, 2025 · Mobile Development

Demystifying Android MVI: Origins, Misconceptions, and Best Practices

This article traces the evolution of Android's Model‑View‑Intent (MVI) architecture from its MVC and Flux roots, clarifies common misconceptions versus Redux and MVVM, and provides concrete Kotlin code examples and guidelines for implementing a truly unidirectional, immutable‑state MVI pattern in mobile apps.

MVIreactive-programmingstate-management
0 likes · 16 min read
Demystifying Android MVI: Origins, Misconceptions, and Best Practices