Skip to content
Tagged articles

Kotlin

375 articles · Page 2 of 4
JD Cloud Developers
JD Cloud Developers
Nov 19, 2024 · Fundamentals

When to Choose Coroutines Over Threads: A Deep Dive into Java/Kotlin Concurrency

This article compares coroutines and threads for high‑concurrency and I/O‑intensive workloads versus CPU‑bound tasks, discusses Kotlin coroutine adoption, presents multithreading fundamentals, highlights performance pitfalls like System.currentTimeMillis, and offers code examples and optimization strategies for backend developers.

CoroutinesJavaKotlin
0 likes · 8 min read
When to Choose Coroutines Over Threads: A Deep Dive into Java/Kotlin Concurrency
Bitu Technology
Bitu Technology
Nov 8, 2024 · Mobile Development

Designing a Modular, Scalable Android Player Architecture at Tubi

This article describes how Tubi's Android team redesigned their video player with a modular, distributed architecture—introducing PlayerContext, PlayerHandlerWrapper, and composable modules for ads, event tracking, and TTS—to improve flexibility, testability, and scalability while sharing lessons learned from the refactoring process.

Ad IntegrationAndroidKotlin
0 likes · 12 min read
Designing a Modular, Scalable Android Player Architecture at Tubi
Sohu Tech Products
Sohu Tech Products
Sep 5, 2024 · Mobile Development

Implementing a Simple Danmu (Bullet Screen) Effect Using RecyclerView and StaggeredGridLayoutManager in Android

The article demonstrates how to create a lightweight, infinite‑scrolling danmu (bullet‑screen) effect in Android by embedding a RecyclerView inside a custom DanMuView, using StaggeredGridLayoutManager for multi‑row layout and a scrollBy‑based Runnable to continuously scroll and control speed.

AndroidBulletScreenDanmu
0 likes · 10 min read
Implementing a Simple Danmu (Bullet Screen) Effect Using RecyclerView and StaggeredGridLayoutManager in Android
iQIYI Technical Product Team
iQIYI Technical Product Team
Aug 30, 2024 · Mobile Development

Enhancing Hotfixes for QiYiGuo TV Using Robust and Plugin Mechanisms

To improve QiYiGuo TV’s rapid issue resolution, the team adopted Robust as the core hot‑fix engine and extended it with KRobust to handle reflection, Kotlin methods, enum‑switch mapping, and native‑library swaps, while building an automated deployment platform that now achieves over 95% fix rate and reduces average repair time from three days to under 24 hours across hundreds of channel APKs.

AndroidHotfixKotlin
0 likes · 16 min read
Enhancing Hotfixes for QiYiGuo TV Using Robust and Plugin Mechanisms
Tencent Cloud Developer
Tencent Cloud Developer
Aug 29, 2024 · Mobile Development

Kotlin Native: Architecture, Compilation, Memory Layout, Interoperability, and Future Outlook

Kotlin Native compiles Kotlin code to native binaries via an IR‑to‑LLVM pipeline, provides C/C++‑compatible memory layout, garbage‑collected runtime, and rich interop with C, C++, Objective‑C/Swift, while facing tooling and value‑type challenges that are being addressed through ongoing performance and language enhancements.

InteropKotlinMemoryManagement
0 likes · 58 min read
Kotlin Native: Architecture, Compilation, Memory Layout, Interoperability, and Future Outlook
Sohu Tech Products
Sohu Tech Products
Aug 28, 2024 · Mobile Development

AutoHeightViewPager: Dynamically Adjusting ViewPager Height in Android

The article introduces AutoHeightViewPager, a custom ViewPager subclass that measures the current page’s view height and overrides onMeasure to resize itself, interpolating between pages during scroll via an AutoHeightPager‑compatible adapter, thereby eliminating blank space or clipping and providing smooth height transitions for variable‑sized content.

AndroidCustom ViewKotlin
0 likes · 9 min read
AutoHeightViewPager: Dynamically Adjusting ViewPager Height in Android
21CTO
21CTO
Aug 9, 2024 · Fundamentals

Why Python Is Now the Dominant Language: Insights from the Latest TIOBE Index

The latest TIOBE Index shows Python surpassing 18% for the first time, overtaking Java as the top language, while Java, C++, and emerging contenders like Rust and Kotlin shift positions, offering developers a strategic view of programming language popularity and future trends.

KotlinPythonTIOBE Index
0 likes · 5 min read
Why Python Is Now the Dominant Language: Insights from the Latest TIOBE Index
Programmer DD
Programmer DD
Aug 9, 2024 · Backend Development

Discover the Most Powerful IntelliJ IDEA 2024.2 Features for Java & Kotlin Developers

IntelliJ IDEA 2024.2 introduces a suite of developer‑focused enhancements—including instant Spring Data JPA queries, cron expression auto‑completion, GraalJS‑powered HTTP client, advanced log management, real‑time performance charts, and rich data‑format visualizers—designed to boost productivity for Java and Kotlin programmers.

GraalJSIntelliJ IDEAJava
0 likes · 6 min read
Discover the Most Powerful IntelliJ IDEA 2024.2 Features for Java & Kotlin Developers
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 24, 2024 · Mobile Development

Practical Lessons from Upgrading a Large Android Codebase to AGP 8.2.2

This article details a three‑month, multi‑step migration of a large Android monorepo from AGP 7.2.2 to 8.2.2, covering Transform API deprecation, namespace handling, Gradle and JDK upgrades, build‑feature toggles, third‑party library adaptations, performance optimizations, and the troubleshooting of numerous compilation pitfalls.

AGPAndroidBuild Optimization
0 likes · 18 min read
Practical Lessons from Upgrading a Large Android Codebase to AGP 8.2.2
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 28, 2024 · Fundamentals

Handcrafting a Minimal Kotlin Coroutine Implementation

This article analyzes the shortcomings of existing Kotlin coroutine tutorials and presents a step‑by‑step guide to building a lightweight coroutine framework from scratch, covering thread basics, CoroutineScope, launch, delay, resume, state‑machine logic, withContext, async, and Deferred with complete code examples.

Asynchronous ProgrammingCoroutinesCustom Implementation
0 likes · 15 min read
Handcrafting a Minimal Kotlin Coroutine Implementation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 27, 2024 · Mobile Development

State Management in Jetpack Compose: remember, MutableState, ViewModel, StateFlow, LiveData, and Effect APIs

Jetpack Compose’s state management techniques—including remember, mutableStateOf, ViewModel integration, StateFlow, LiveData, state lifting, and various side‑effect APIs such as LaunchedEffect, rememberCoroutineScope, and DisposableEffect—are explained with Kotlin code examples to help Android developers build robust, reactive UI components.

AndroidEffect APIJetpack Compose
0 likes · 15 min read
State Management in Jetpack Compose: remember, MutableState, ViewModel, StateFlow, LiveData, and Effect APIs
php Courses
php Courses
Jun 19, 2024 · Fundamentals

Why We Need Secondary Constructors and How to Implement Them in Kotlin

The article explains the importance of auxiliary (secondary) constructors for flexible object creation, contrasts PHP's lack of support with Kotlin's feature, and demonstrates clean implementations using primary constructors and static factory methods to improve readability and maintainability.

Kotlinconstructorsdesign patterns
0 likes · 4 min read
Why We Need Secondary Constructors and How to Implement Them in Kotlin
Sohu Tech Products
Sohu Tech Products
Jun 5, 2024 · Mobile Development

Android KAPT Build Optimization: From Analysis to KSP Migration and IDE Plugin Solutions

The article analyzes why KAPT consumes 82% of Android‑Kotlin build time and presents three optimization strategies—enabling KAPT incremental compilation, migrating to the faster KSP processor, and creating an Android Studio plugin that generates code at development time—detailing their implementation steps, performance gains, and trade‑offs.

AndroidAndroid Studio PluginAnnotation Processor
0 likes · 40 min read
Android KAPT Build Optimization: From Analysis to KSP Migration and IDE Plugin Solutions
Architect's Guide
Architect's Guide
Jun 4, 2024 · Fundamentals

IntelliJ IDEA 2024.1 Release: New Features and Improvements

JetBrains' 2024.1 update for IntelliJ IDEA introduces full‑line code completion, Java 22 support, a revamped terminal, AI Assistant enhancements, improved version‑control integration, faster Maven project loading, advanced debugging, Spring framework upgrades, and numerous UI and refactoring refinements, all aimed at boosting developer productivity.

AI code completionBuild ToolsIDE Features
0 likes · 11 min read
IntelliJ IDEA 2024.1 Release: New Features and Improvements
Continuous Delivery 2.0
Continuous Delivery 2.0
May 30, 2024 · Artificial Intelligence

Meta’s TestGen‑LLM: AI‑Driven Automatic Unit Test Generation for Kotlin Code

In 2024 Meta introduced TestGen‑LLM, an AI‑powered tool that automatically generates Kotlin unit tests using large language models, improving test coverage through a multi‑stage pipeline of candidate generation, compilation filtering, execution filtering, coverage validation, refactoring, and engineer review, with reported coverage gains across Facebook and Instagram codebases.

AIKotlinLLM
0 likes · 6 min read
Meta’s TestGen‑LLM: AI‑Driven Automatic Unit Test Generation for Kotlin Code
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 22, 2024 · Mobile Development

Android MVVM Architecture

This article explains the MVVM (Model-View-ViewModel) architecture for modern Android development, detailing its three core components, their responsibilities, and provides a step‑by‑step example with Jetpack components, including LiveData, ViewModel, View Binding, and complete code snippets to build a simple user list UI.

AndroidJavaKotlin
0 likes · 8 min read
Android MVVM Architecture
Bilibili Tech
Bilibili Tech
May 17, 2024 · Mobile Development

Cross‑Platform Language Benchmark and Interoperability Analysis

The study benchmarks Kotlin, JavaScript, Dart, C++ and Swift across iOS, Android and HarmonyOS using 237 protobuf files, finding Kotlin’s performance and binary size rival native Swift, JavaScript slower with higher memory, while C++/Rust excel but need more effort, leading to a recommendation of Kotlin Multiplatform with a three‑repo structure for optimal reuse and maintainability.

BenchmarkInteroperabilityKotlin
0 likes · 30 min read
Cross‑Platform Language Benchmark and Interoperability Analysis
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 3, 2024 · Mobile Development

Exploring Dart Features for Kotlin Developers: A Flutter Mobile Development Perspective

This article shares a Kotlin developer’s experience transitioning to Flutter, examining Dart’s syntax and features such as null safety, late initialization, extensions, top‑level and higher‑order functions, and operator overloading, while explaining why Flutter was chosen for a cross‑platform audio player project.

Kotlincross-platformmobile development
0 likes · 13 min read
Exploring Dart Features for Kotlin Developers: A Flutter Mobile Development Perspective
Sohu Tech Products
Sohu Tech Products
Mar 27, 2024 · Mobile Development

Implementing System-Level and In-App Floating Windows on Android and HarmonyOS

The article compares Android’s fragmented system‑level floating‑window permissions and lack of built‑in in‑app support with HarmonyOS’s simpler Application Sub‑Window approach, detailing how to obtain a WindowStage, create and configure a draggable sub‑window, handle gestures, and forward navigation and back‑press events to the main window.

AndroidHarmonyOSKotlin
0 likes · 8 min read
Implementing System-Level and In-App Floating Windows on Android and HarmonyOS
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 26, 2024 · Mobile Development

Building a Customizable Pie Chart Component with Jetpack Compose

This article demonstrates how to build a customizable pie chart component in Jetpack Compose, covering data preparation, drawing solid and ring styles, adding animated transitions, configuring description positions, and supporting multiple dimensions with a grid layout, providing complete Kotlin code examples.

AndroidJetpack ComposeKotlin
0 likes · 9 min read
Building a Customizable Pie Chart Component with Jetpack Compose
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 21, 2024 · Fundamentals

Refactoring Multi‑Board SDK Integration Using Abstract Factory, Adapter, and Facade Patterns

The article analyzes a multi‑board Android SDK integration problem, identifies hard‑coded type checks and inconsistent APIs, and proposes a refactor that employs the Abstract Factory, Adapter, and Facade design patterns with Kotlin examples to achieve loose coupling, extensibility, and clearer business concepts.

Abstract FactoryKotlinadapter pattern
0 likes · 10 min read
Refactoring Multi‑Board SDK Integration Using Abstract Factory, Adapter, and Facade Patterns
Java Architect Essentials
Java Architect Essentials
Feb 28, 2024 · Backend Development

Design and Implementation of a Business Rate‑Limiting Component Using Redis Lua Scripts and Custom Annotations in Kotlin

This article explains why a custom business risk‑control (rate‑limiting) component is needed for AI‑intensive services, compares open‑source solutions, and provides a complete backend implementation using Redis+Lua scripts, Kotlin code, Spring AOP annotations, and real‑time adjustable rules.

BackendKotlinLua
0 likes · 10 min read
Design and Implementation of a Business Rate‑Limiting Component Using Redis Lua Scripts and Custom Annotations in Kotlin
Sohu Tech Products
Sohu Tech Products
Jan 24, 2024 · Mobile Development

How to Fix FastJson Parsing Errors in Kotlin Android Apps

This article analyzes why FastJson, Gson, and Kotlinx‑serialization encounter crashes or incorrect handling when parsing Kotlin data classes in Android, explains the root causes such as missing no‑arg constructors and null‑safety issues, and provides concrete code fixes, ProGuard rules, and a unified wrapper API for reliable JSON processing.

AndroidFastjsonGson
0 likes · 20 min read
How to Fix FastJson Parsing Errors in Kotlin Android Apps
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 24, 2024 · Mobile Development

Unlock Peak Kotlin Performance with Advanced Refactoring Techniques

This article guides developers through a series of Kotlin refactoring steps—replacing when statements with HashMap, introducing payload mechanisms, infix functions, inline registration, and delegated properties—to dramatically improve event‑handling performance, readability, and maintainability while adhering to the single‑responsibility principle.

HashMapInfix FunctionsKotlin
0 likes · 16 min read
Unlock Peak Kotlin Performance with Advanced Refactoring Techniques
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 9, 2024 · Mobile Development

Understanding Android LayoutInflater: Usage, inflate Methods, Factory and Factory2

This article explains how Android's LayoutInflater converts XML layout files into View objects, demonstrates the various ways to obtain and use a LayoutInflater, details the overloads of the inflate method, and shows how to customize view creation with Factory and Factory2 interfaces, including practical code examples.

AndroidFactory2Java
0 likes · 20 min read
Understanding Android LayoutInflater: Usage, inflate Methods, Factory and Factory2
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 26, 2023 · Mobile Development

EdgeUtils: Android Edge‑to‑Edge UI Utility Library Guide

EdgeUtils is an Android library built on androidx.core that simplifies edge‑to‑edge immersive UI by providing easy‑to‑use APIs, integration steps, code examples, visual‑conflict resolutions, gesture handling, and bug‑fixes for status‑bar, navigation‑bar, and toolbar adaptations.

AndroidEdge-to-EdgeKotlin
0 likes · 11 min read
EdgeUtils: Android Edge‑to‑Edge UI Utility Library Guide
Sohu Tech Products
Sohu Tech Products
Dec 13, 2023 · Mobile Development

Swift–Kotlin Interoperability in Compose for iOS

This article demonstrates how to bridge Swift and Kotlin in a Compose‑Multiplatform iOS app by using Swift view modifiers to detect orientation changes and call Kotlin functions, while exposing Kotlin callbacks that Swift registers to change device orientation, enabling seamless two‑way platform‑specific logic integration.

Compose MultiplatformInteroperabilityKotlin
0 likes · 9 min read
Swift–Kotlin Interoperability in Compose for iOS
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 7, 2023 · Mobile Development

Comprehensive Guide to Building Modern Android Apps in 2023

This article provides a detailed overview of the latest 2023 trends, tools, libraries, architectural patterns, and best practices for developing modern Android applications, covering everything from Kotlin and Jetpack Compose to Clean Architecture, modularization, performance optimization, and Google Play features.

AndroidJetpack ComposeKotlin
0 likes · 16 min read
Comprehensive Guide to Building Modern Android Apps in 2023
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 3, 2023 · Mobile Development

Comprehensive Guide to Using Hilt for Dependency Injection in Android

This article explains the fundamentals of dependency injection, introduces Hilt and its basic setup for Android, demonstrates advanced features such as qualifiers, scopes, assisted injection, custom entry points, and analyzes Hilt's underlying principles, helping developers decide whether to adopt DI frameworks in Android projects.

AndroidAssisted InjectionDI Framework
0 likes · 21 min read
Comprehensive Guide to Using Hilt for Dependency Injection in Android
Sohu Tech Products
Sohu Tech Products
Nov 1, 2023 · Mobile Development

Compose-Multiplatform Cross-Platform Development Guide: From Setup to Rendering Principles

This guide walks developers through setting up Compose‑Multiplatform, implementing a Ktor‑based network layer, designing shared data models, building a LazyColumn UI, and explains Android rendering internals—from LayoutNode creation to Skiko drawing—while comparing the framework to Flutter and highlighting its low learning curve.

AndroidCompose-MultiplatformJetpack Compose
0 likes · 18 min read
Compose-Multiplatform Cross-Platform Development Guide: From Setup to Rendering Principles
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 23, 2023 · Mobile Development

Building a Kotlin Retrofit Network Request Framework for Android with Token Interceptors, File Upload/Download, and ViewModel Integration

This article demonstrates how to create a clean, reusable network request layer for Android using Kotlin, Retrofit, and OkHttp, covering dependency setup, custom token interceptors, Retrofit utility creation, request/result handling with ViewModel extensions, and comprehensive file upload and download implementations.

AndroidFile UploadKotlin
0 likes · 17 min read
Building a Kotlin Retrofit Network Request Framework for Android with Token Interceptors, File Upload/Download, and ViewModel Integration
DeWu Technology
DeWu Technology
Sep 18, 2023 · Mobile Development

Trimming Android XML Binary Resources to Shrink APK Size

This article explains the inner workings of Android's compiled XML format, demonstrates how to parse and manipulate its binary chunks, and presents a step‑by‑step optimization that removes namespaces and attribute names to reduce APK size by up to 28 % while handling compatibility issues.

APK size reductionAndroidKotlin
0 likes · 21 min read
Trimming Android XML Binary Resources to Shrink APK Size
phodal
phodal
Sep 17, 2023 · Artificial Intelligence

How Chocolate Factory’s Codebase AI Assistant Boosts Code Search with RAG

This article explains the design and implementation of the Codebase AI Assistant in the Chocolate Factory framework, covering its problem‑solving DSL, retrieval‑augmented generation pipeline, indexing and querying stages, prompt strategies, and code‑splitting rules that together enable efficient semantic code search.

AI assistantKotlinRetrieval-Augmented Generation
0 likes · 11 min read
How Chocolate Factory’s Codebase AI Assistant Boosts Code Search with RAG
Bilibili Tech
Bilibili Tech
Aug 29, 2023 · Mobile Development

Designing a Multi‑Scope Architecture for Bilibili’s Integrated Playback Page Using Dagger and Kotlin Coroutines

To merge Bilibili’s UGC and OGV playback pages, the team built a multi‑scope architecture that aligns Dagger‑managed dependency‑injection components with Kotlin CoroutineScopes—PageScope, BizScope, and VideoPlayScope—so each business module is instantiated only when needed, automatically disposed with its parent lifecycle, and remains memory‑leak‑free.

AndroidCoroutinesDAgger
0 likes · 19 min read
Designing a Multi‑Scope Architecture for Bilibili’s Integrated Playback Page Using Dagger and Kotlin Coroutines
Ximalaya Technology Team
Ximalaya Technology Team
Aug 11, 2023 · Mobile Development

Simplifying Android Network Requests with Kotlin Coroutines

By converting Android network calls from callback‑based listeners to Kotlin coroutines, the code becomes sequential, eliminates duplicated UI‑state checks, centralizes loading handling, supports parallel requests with async/await, and integrates with lifecycleScope for automatic cancellation, greatly improving readability and safety.

AndroidAsync ProgrammingCoroutines
0 likes · 15 min read
Simplifying Android Network Requests with Kotlin Coroutines
vivo Internet Technology
vivo Internet Technology
Jul 26, 2023 · Mobile Development

Evolution of Android Architecture Patterns: MVC, MVP, MVVM, MVI and Compose Integration

The article traces Android’s architectural evolution from MVC through MVP and MVVM to MVI, explains each pattern with code examples, shows how MVI’s unidirectional flow combined with Jetpack Compose achieves full UI‑logic‑data decoupling for serial workflows like login‑verify‑thumb‑up, and advises developers to adopt MVI + Compose for new projects.

AndroidKotlinMVI
0 likes · 29 min read
Evolution of Android Architecture Patterns: MVC, MVP, MVVM, MVI and Compose Integration
DeWu Technology
DeWu Technology
Jul 19, 2023 · Mobile Development

Resource Optimization Practices in DeWu App: Plugins, Image Compression, Deduplication, and ARSC Shrinking

DeWu reduces its APK size by removing unused plugin resources, compressing images with WebP, Guetzli, PNGQuant and Gifsicle, deduplicating and obfuscating ARSC entries, applying 7‑zip compression, delivering large assets dynamically, and continuously cleaning unused resources through compile‑time checks and runtime scanning.

APKARSCAndroid
0 likes · 15 min read
Resource Optimization Practices in DeWu App: Plugins, Image Compression, Deduplication, and ARSC Shrinking
Programmer DD
Programmer DD
Jul 13, 2023 · Artificial Intelligence

Unlock Interactive Kotlin Development with the New Kotlin Notebook Plugin

IntelliJ IDEA's Kotlin Notebook plugin brings interactive notebooks to Kotlin, enabling developers to combine code, visualizations, and narrative in a single document, supporting rapid prototyping, data analysis, and AI workflows with seamless library integration and flexible execution controls.

IntelliJ IDEAInteractive DevelopmentKotlin
0 likes · 4 min read
Unlock Interactive Kotlin Development with the New Kotlin Notebook Plugin
Sohu Tech Products
Sohu Tech Products
Jul 12, 2023 · Mobile Development

Measuring and Locating Android App Jank Using JankStats and Stack‑Dump Techniques

This article explains how to quantify Android UI jank by calculating a jank rate, uses Jetpack's JankStats library to collect frame‑level metrics, and presents two practical methods—stack dumping and bytecode instrumentation—to pinpoint the slow functions causing stutter, complete with Kotlin code examples and performance considerations.

AndroidKotlinjank
0 likes · 12 min read
Measuring and Locating Android App Jank Using JankStats and Stack‑Dump Techniques
DeWu Technology
DeWu Technology
Jun 30, 2023 · Mobile Development

Optimizing Android CPU Frequency, Core Affinity, and Thread Priority

The article explains how to boost Android app performance by programmatically raising CPU frequency using Qualcomm’s BoostFramework, setting thread‑core affinity with native sched_setaffinity calls, and increasing execution priority via Process.setThreadPriority, providing Kotlin and C examples that demonstrate measurable speed gains.

AndroidCPU optimizationKotlin
0 likes · 20 min read
Optimizing Android CPU Frequency, Core Affinity, and Thread Priority
phodal
phodal
Jun 27, 2023 · Artificial Intelligence

Designing an LLM‑Powered Architecture: The ArchGuard Co‑mate Reference Model

This article presents a detailed reference architecture for building LLM‑driven applications, using the ArchGuard Co‑mate project to illustrate layered design, local model integration, DSL‑based orchestration, and streaming LLM interfaces, complete with code examples and practical implementation notes.

AI OpsKotlinLLM
0 likes · 10 min read
Designing an LLM‑Powered Architecture: The ArchGuard Co‑mate Reference Model
phodal
phodal
Jun 11, 2023 · Artificial Intelligence

How ArchGuard 2.0 Uses LLMs to Dynamically Generate Architecture Governance Functions

This article explains how ArchGuard 2.0 leverages large language models to transform tacit architectural knowledge into dynamic, DSL‑based governance functions, detailing the challenges of traditional tools, the design of the Co‑mate system, and the practical implementation using Kotlin REPL.

APIDSLKotlin
0 likes · 8 min read
How ArchGuard 2.0 Uses LLMs to Dynamically Generate Architecture Governance Functions
Top Architect
Top Architect
May 24, 2023 · Backend Development

Implementing Business Rate Limiting with Redis, Lua, and Kotlin Annotations

This article explains why a custom business rate‑limiting component is needed, outlines the required rules, chooses Redis + Lua for counting, and provides complete Kotlin/Spring code—including a Detect annotation, Lua scripts, and usage examples—to enforce daily, hourly, and combined limits with real‑time adjustments.

AnnotationsKotlinLua
0 likes · 10 min read
Implementing Business Rate Limiting with Redis, Lua, and Kotlin Annotations
37 Interactive Technology Team
37 Interactive Technology Team
May 22, 2023 · Mobile Development

Gradle Build Optimization for Android Projects: Analysis, Debugging, and Configuration

The article demonstrates a systematic approach to speeding up large Android Gradle builds by inspecting logs, stack traces, debugging plugins, profiling task execution with a custom plugin, and applying on‑demand configuration, caching, incremental and parallel compilation settings, which together cut build time by roughly 40 %.

AndroidBuild OptimizationCaching
0 likes · 12 min read
Gradle Build Optimization for Android Projects: Analysis, Debugging, and Configuration
Sohu Tech Products
Sohu Tech Products
May 4, 2023 · Mobile Development

Understanding Kotlin Lazy Initialization: Usage, Source Code Analysis, and Best Practices

This article explains Kotlin's lazy initialization feature, describes its common usage patterns, dives into the internal source‑code implementations (Synchronized, Publication, and None), discusses thread‑safety concepts such as volatile and CAS, and provides practical recommendations for Android developers.

AndroidKotlinlazy initialization
0 likes · 11 min read
Understanding Kotlin Lazy Initialization: Usage, Source Code Analysis, and Best Practices
Sohu Tech Products
Sohu Tech Products
Apr 19, 2023 · Mobile Development

Kotlin Multiplatform Mobile (KMM): Overview, Setup, Architecture, and Build Process

This article provides a comprehensive guide to Kotlin Multiplatform Mobile (KMM), covering its concepts, advantages over other cross‑platform frameworks, detailed setup steps, project structure, Gradle configuration, code examples for shared and platform‑specific modules, and an in‑depth explanation of the Android and iOS compilation pipelines.

AndroidGradleKMM
0 likes · 21 min read
Kotlin Multiplatform Mobile (KMM): Overview, Setup, Architecture, and Build Process
Sohu Tech Products
Sohu Tech Products
Dec 21, 2022 · Mobile Development

Implementing a Custom Layout in Jetpack Compose for Dynamic Room Display

This article explains how to create a custom layout in Jetpack Compose that dynamically arranges a grid of fixed‑size room items, centers the content horizontally and vertically when needed, and adds vertical scrolling for overflow, while detailing the measurement and placement logic with full Kotlin code examples.

AndroidCustom LayoutJetpack Compose
0 likes · 17 min read
Implementing a Custom Layout in Jetpack Compose for Dynamic Room Display
Sohu Tech Products
Sohu Tech Products
Dec 14, 2022 · Mobile Development

Implementing a Drag‑and‑Bounce Custom View with Explosion Effect in Android (Kotlin)

This tutorial explains how to build an Android custom view that lets a large circle be dragged, scales a smaller circle based on distance, snaps back with a bounce animation when released inside a boundary, or plays an explosion sequence when released outside, using Kotlin, Bézier curves, and WindowManager integration.

AndroidCustom ViewDrag-and-Drop
0 likes · 19 min read
Implementing a Drag‑and‑Bounce Custom View with Explosion Effect in Android (Kotlin)
Sohu Tech Products
Sohu Tech Products
Dec 7, 2022 · Mobile Development

Type‑agnostic RecyclerView Item Visibility Detection for Android

The article explains why reporting item exposure in onBindViewHolder is inaccurate, reviews existing scroll‑listener based solutions and their limitations, and then presents a layout‑manager‑independent Kotlin extension that reliably detects RecyclerView item visibility based on visible area percentage, also covering ViewPager2 page visibility handling.

AndroidExtensionFunctionsKotlin
0 likes · 10 min read
Type‑agnostic RecyclerView Item Visibility Detection for Android
Xiaohongshu Tech REDtech
Xiaohongshu Tech REDtech
Dec 7, 2022 · Mobile Development

Optimizing Android Layout Inflation with Layout2Code: An APT‑Based Approach

The team created Layout2Code, an APT‑based generator that translates XML layouts into Kotlin code at build time—handling merge and include tags and supporting custom Views—cutting homepage layout inflation by over 200 ms, boosting performance metrics while requiring far less maintenance than traditional X2C solutions.

AndroidKotlinLayoutInflater
0 likes · 7 min read
Optimizing Android Layout Inflation with Layout2Code: An APT‑Based Approach
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 28, 2022 · Mobile Development

Implementing a WeChat Zombie‑Friend Detection Tool Using Android AccessibilityService

This article walks through building an Android AccessibilityService‑based tool that automatically detects WeChat contacts who have deleted or blocked you by using a fake‑transfer method, handling UI events, launching WeChat, and employing Kotlin code snippets for node navigation and gesture simulation.

AccessibilityServiceAndroidKotlin
0 likes · 16 min read
Implementing a WeChat Zombie‑Friend Detection Tool Using Android AccessibilityService
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 28, 2022 · Mobile Development

Deep Dive into Compose Animatable API: Creation, animateTo, snapTo, and a Practical Upload Button Example

This article explains the low‑level Android Jetpack Compose Animatable API, its constructor parameters, how to create and configure Animatable instances for various value types, and demonstrates using animateTo and snapTo within coroutines, including listeners and a complete upload‑button use case.

AndroidAnimatableKotlin
0 likes · 15 min read
Deep Dive into Compose Animatable API: Creation, animateTo, snapTo, and a Practical Upload Button Example
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 22, 2022 · Mobile Development

Understanding apt, kapt, and ksp: Annotation Processing and Kotlin Symbol Processing for Code Generation

This article explains the differences between Java's Annotation Processing Tool (apt), Kotlin's annotation processor (kapt), and the newer Kotlin Symbol Processing (ksp) framework, illustrating their architectures, usage patterns, and code‑generation capabilities with practical examples for Android development.

AndroidAnnotation ProcessingKSP
0 likes · 10 min read
Understanding apt, kapt, and ksp: Annotation Processing and Kotlin Symbol Processing for Code Generation
Yuanfudao Tech
Yuanfudao Tech
Nov 18, 2022 · Mobile Development

Migrating from Kotlin Android Extensions to Kace: A Seamless Migration Guide

This article explains why the Kotlin Android Extensions plugin is deprecated, outlines migration strategies for legacy code, introduces the open‑source Kace framework as a seamless replacement, and provides detailed setup, code generation, performance optimizations, and incremental compilation techniques for Android projects.

AndroidCompiler PluginGradle
0 likes · 15 min read
Migrating from Kotlin Android Extensions to Kace: A Seamless Migration Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 16, 2022 · Mobile Development

Understanding RepeatableSpec and InfiniteRepeatableSpec in Jetpack Compose Animations

This article explains the RepeatableSpec and InfiniteRepeatableSpec animation specifications in Jetpack Compose, detailing their constructors, parameters such as iterations, repeatMode, and initialStartOffset, and demonstrates practical Kotlin code examples for creating repeatable and endless animations.

InfiniteRepeatableSpecJetpack ComposeKotlin
0 likes · 11 min read
Understanding RepeatableSpec and InfiniteRepeatableSpec in Jetpack Compose Animations
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Nov 15, 2022 · Mobile Development

Analyzing and Optimizing Retrofit Performance in Android Applications

The article uncovers a lock‑induced latency in Retrofit’s service‑method cache during cold‑start, demonstrates how moving the synchronization to a class‑level lock and customizing Retrofit.create eliminates the bottleneck, and then shows how dynamic‑proxy hooks combined with Kotlin coroutines can add transparent caching and low‑intrusion BFF aggregation without altering the library.

AndroidBFFCoroutines
0 likes · 21 min read
Analyzing and Optimizing Retrofit Performance in Android Applications
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 11, 2022 · Mobile Development

Advanced Android Componentization: Component Splitting, Multi‑UI Strategies, KV Storage, and Routing Best Practices

This article explains how to split Android components based on business functionality, handle strong and weak component dependencies, configure multiple UI themes, manage key‑value storage safely with MMKV‑KTX, and use routing frameworks judiciously to keep modular apps maintainable and scalable.

AndroidComponentizationKV storage
0 likes · 22 min read
Advanced Android Componentization: Component Splitting, Multi‑UI Strategies, KV Storage, and Routing Best Practices
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 11, 2022 · Mobile Development

Practical Guide to Android Componentization and Modular Development

This article explains why monolithic Android projects suffer from long compile times, high coupling, and merge conflicts, and demonstrates how componentization—using a four‑layer architecture, unified Gradle dependencies, plugin switching, code isolation, ARouter routing, decentralized APIs, and AndroidX App Startup initialization—can solve these problems with concrete Kotlin and XML examples.

ARouterAndroidComponentization
0 likes · 21 min read
Practical Guide to Android Componentization and Modular Development
Sohu Tech Products
Sohu Tech Products
Nov 9, 2022 · Mobile Development

Integrating AndroidMonitor for In‑App Network Packet Capture on Android

This article introduces AndroidMonitor, a lightweight Android packet‑capture library, explains how to add its monitor and monitor‑plugin dependencies, configure ProGuard, customize entry names, ports and logos, and optionally use AndroidLocalService to expose captured data via a local socket for both mobile and PC UI visualization.

AndroidKotlinLocal Service
0 likes · 9 min read
Integrating AndroidMonitor for In‑App Network Packet Capture on Android
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 9, 2022 · Fundamentals

Understanding Kotlin IR and Compose Compiler Code Generation

This article explains how the Kotlin Compose Compiler uses the intermediate representation (IR) to generate code, covering IR tree structure, traversal with visitors and transformers, and the process of adding composer parameters and restart groups via custom IrGenerationExtension plugins.

AndroidCompiler PluginsCompose Compiler
0 likes · 10 min read
Understanding Kotlin IR and Compose Compiler Code Generation
Sohu Tech Products
Sohu Tech Products
Nov 2, 2022 · Mobile Development

Android Soft Keyboard Height Detection and Layout Attachment Techniques

This article reviews three approaches to obtain the Android soft‑keyboard height—using ViewTreeObserver, a hidden PopupWindow, and WindowInsets—compares their pros and cons, shows complete Kotlin/Java implementations, and demonstrates how to attach UI elements to the keyboard for a smoother user experience.

AndroidKeyboard HeightKotlin
0 likes · 14 min read
Android Soft Keyboard Height Detection and Layout Attachment Techniques
Programmer DD
Programmer DD
Oct 31, 2022 · Mobile Development

Why Meta Swapped Java for Kotlin: Insights from a Massive Android Migration

Meta’s recent shift of its Android apps from Java to Kotlin reveals both the compelling benefits—such as null‑safety, concise code, and functional features—and the practical challenges like mixed codebases, tooling gaps, and longer build times, offering a detailed roadmap for large‑scale mobile language migration.

AndroidJavaKotlin
0 likes · 8 min read
Why Meta Swapped Java for Kotlin: Insights from a Massive Android Migration
21CTO
21CTO
Oct 26, 2022 · Mobile Development

Why Meta Is Rewriting Its Android Apps in Kotlin – Insights for Developers

Meta is converting its flagship Android apps from Java to Kotlin, citing benefits like reduced code size, safety, and better concurrency support, while navigating tooling challenges and showing a broader industry shift toward Kotlin for mobile development.

AndroidJava migrationKotlin
0 likes · 6 min read
Why Meta Is Rewriting Its Android Apps in Kotlin – Insights for Developers
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 24, 2022 · Mobile Development

Understanding Compose Compiler Checkers: ComposableCallChecker, ComposableDeclarationChecker, and ComposeDiagnosticSuppressor

This article explains how the Compose compiler’s front‑end checkers—ComposableCallChecker, ComposableDeclarationChecker, and ComposeDiagnosticSuppressor—validate @Composable usage, handle inline lambdas, annotation retention, and named‑argument restrictions, providing code examples and visual diagrams to illustrate each rule.

AndroidCheckerCompiler
0 likes · 13 min read
Understanding Compose Compiler Checkers: ComposableCallChecker, ComposableDeclarationChecker, and ComposeDiagnosticSuppressor
Sohu Tech Products
Sohu Tech Products
Oct 19, 2022 · Mobile Development

Managing Complexity in Android Search UI: From MVC to MVI and Kotlin DSL Implementation

This article explains how to reduce UI complexity in Android by layering architecture, tracing the evolution from MVC through MVP and MVVM to MVI, and demonstrates a searchable interface built with Jetpack Navigation and Kotlin DSL, highlighting pitfalls of monolithic initView methods and proposing more reusable abstractions.

AndroidKotlinMVI
0 likes · 16 min read
Managing Complexity in Android Search UI: From MVC to MVI and Kotlin DSL Implementation
Java Architect Essentials
Java Architect Essentials
Oct 13, 2022 · Backend Development

Five Java/Kotlin Microservice Frameworks Compared: Helidon, Ktor, Micronaut, Quarkus & Spring Boot

The article builds five microservices with Helidon SE, Ktor, Micronaut, Quarkus and Spring Boot, integrates Consul for service discovery, provides full source code and configuration, shows how to start each service, benchmarks size, startup time and memory usage, and finally lists the pros and cons of each framework.

BackendJavaKotlin
0 likes · 22 min read
Five Java/Kotlin Microservice Frameworks Compared: Helidon, Ktor, Micronaut, Quarkus & Spring Boot
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 13, 2022 · Mobile Development

Exploring Jetpack Compose Animation Specs: Spring, Tween, Snap, Keyframes, Repeatable and Infinite Repeatable

This article provides a comprehensive tutorial on Jetpack Compose animation specifications, covering Spring, Tween, Snap, Keyframes, repeatable and infinite repeatable specs, explaining their parameters, default values, and demonstrating practical Kotlin code examples with visual GIFs to illustrate each effect.

Jetpack ComposeKotlinTween
0 likes · 15 min read
Exploring Jetpack Compose Animation Specs: Spring, Tween, Snap, Keyframes, Repeatable and Infinite Repeatable
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 13, 2022 · Mobile Development

Deep Dive into animateValueAsState and Custom animateXxxAsState APIs in Jetpack Compose

This article explains how Jetpack Compose’s animateValueAsState underpins the animateXxxAsState family, explores its source code, demonstrates how to create custom animation APIs such as animateDpSizeAsState and animateUploadAsState, and provides practical Kotlin examples for building reusable UI animations on Android.

Jetpack ComposeKotlinanimateValueAsState
0 likes · 12 min read
Deep Dive into animateValueAsState and Custom animateXxxAsState APIs in Jetpack Compose
DaTaobao Tech
DaTaobao Tech
Oct 13, 2022 · Mobile Development

Getting Started with Jetpack Compose: Building a Simple Page

This tutorial walks through building a simple Jetpack Compose page, showing how to define composable functions, manage reactive state, preview UI, add animations, and adapt layouts for portrait and landscape, providing a concise foundation for modern Android UI development.

Android UIDeclarative UIJetpack Compose
0 likes · 11 min read
Getting Started with Jetpack Compose: Building a Simple Page