AndroidPub
Author

AndroidPub

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

79
Articles
0
Likes
362
Views
0
Comments
Recent Articles

Latest from AndroidPub

79 recent articles
AndroidPub
AndroidPub
Aug 11, 2025 · Fundamentals

Unlocking Kotlin’s Context Parameters: From Receivers to Powerful DSLs

This article traces the evolution of Kotlin’s context receivers into context parameters, explains their syntax and how they extend extension functions, and showcases multiple practical scenarios—including multi‑receiver extensions, coroutine integration, dependency injection, DSL construction, and type‑class patterns—while offering best‑practice guidelines and future outlooks.

Context ParametersDSLExtension Functions
0 likes · 11 min read
Unlocking Kotlin’s Context Parameters: From Receivers to Powerful DSLs
AndroidPub
AndroidPub
Aug 7, 2025 · Fundamentals

Mastering Kotlin Flow Cancellation: 13 Essential Techniques Explained

This comprehensive guide explores why cancelling Kotlin Flow is crucial for resource management, user experience, network efficiency, and battery life, and walks through thirteen practical cancellation methods—including Job cancellation, structured concurrency, time‑outs, boolean flags, operators like cancellable, take, first, single, and advanced post‑processing techniques—complete with runnable code examples and outputs.

CancellationFlowKotlin
0 likes · 21 min read
Mastering Kotlin Flow Cancellation: 13 Essential Techniques Explained
AndroidPub
AndroidPub
Jul 24, 2025 · Mobile Development

Master Android IPC: Services, AIDL, Intents, Broadcasts, Messenger, FileProvider

This guide explores Android's inter‑process communication options—running services in separate processes, defining AIDL interfaces, using explicit and implicit Intents, BroadcastReceiver, Messenger, FileProvider, and ContentProvider—detailing configuration, code examples, and when to choose each method for efficient, secure component interaction.

AIDLAndroidBroadcastReceiver
0 likes · 11 min read
Master Android IPC: Services, AIDL, Intents, Broadcasts, Messenger, FileProvider
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.

Functional ProgrammingKotlinResult
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.

AndroidAsynchronous ProgrammingFlow
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.

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

AsyncCancellationCancellationException
0 likes · 9 min read
Mastering Kotlin Coroutine Cancellation: Avoid Zombie Coroutines and Hidden Bugs