This article provides a comprehensive guide to using Kotlin, Jetpack Compose, and Multiplatform for desktop applications, covering project setup, shared code structure, platform-specific implementations, UI layout, resource handling, dependency configuration, and detailed packaging options for Windows, macOS, and Linux.
This guide walks you through integrating Google’s ExoPlayer library into a Jetpack Compose Android app, covering project setup, dependency management, ViewModel‑based player control, custom UI components, lifecycle handling, performance tips, and advanced customization options for building a robust, professional‑grade media player.
This article explains how to eliminate stuttered text output in iOS chat applications powered by local LLMs using the MNN framework, by introducing a three‑layer optimization—smart stream buffering, UI update throttling with batch processing, and a typewriter‑style animation—to achieve smooth, near‑online responsiveness.
scrcpy, an open‑source Android screen‑mirroring tool, offers lightweight, cross‑platform, zero‑intrusion streaming with high frame rates and low latency, enabling test engineers to capture real‑time UI, record videos, perform wireless and automated testing, and handle long‑duration stress tests efficiently.
The article summarizes Tencent's announcement and a podcast where the WeChat HarmonyOS team discusses why the app had to be rebuilt from scratch, the technical hurdles of Huawei's fast‑changing OS, and how the teams collaborate to overcome legacy code and platform differences.
This tutorial explains how to implement a firework‑style like animation in Android by defining particle objects, drawing them on a Canvas, controlling their motion with ValueAnimator and various interpolators, and assembling the animation sequence to produce a festive, high‑frame‑rate visual effect.
This article walks through implementing sophisticated like-button animations using HarmonyOS ArkUI, compares the approach with Android's animation framework, explains key ArkUI APIs like animateTo, and provides detailed Kotlin and TypeScript code for property, Bézier path, and lifecycle management of dynamic UI effects.
This article compares SonarQube, Infer, and Clang Static Analyzer for iOS development, detailing their language support, strengths, weaknesses, integration with CI/CD pipelines, and practical usage tips to help teams select the most suitable static analysis solution.
This article walks through the ArkUI‑X cross‑platform framework, explains the relationship between ArkTS, ArkUI and ArkUI‑X, shows how to set up the development environment, create and build a demo project, and reveals the rendering pipeline and Android/iOS integration details including a clipboard example.
APNG (Animated Portable Network Graphics) extends PNG with animation, offering 24‑bit color and 8‑bit alpha support, superior image quality, smaller file size, and alpha gradients compared to GIF; the article explains its structure, compares formats, and provides a detailed Android implementation for efficient, smooth playback.
This comprehensive guide walks you through Apple’s Live Activity feature introduced at WWDC22, covering scenario planning, project configuration for mixed ObjC‑Swift or pure Swift code, widget implementation with ActivityKit, creating, updating, ending activities, observing state and push tokens, server‑side push payloads, and handling technical constraints such as network image loading.
This tutorial walks you through the complete process of adding push notification support to a HarmonyOS app, covering environment setup, certificate generation, profile configuration, client ID setup, permission requests, token retrieval, handling cold and hot starts, and the required server payload format.
This article examines the challenges of using FastJson, FastJson2, Gson, and Kotlinx-serialization to parse Kotlin data classes in Android, explains why crashes occur due to reflection and null-safety issues, and provides step-by-step solutions—including code modifications, ProGuard rules, and library alternatives—to achieve reliable JSON handling.
This article dives deep into iOS timing mechanisms, explaining how CADisplayLink synchronizes with the screen refresh, how NSTimer works, the role of RunLoop modes, common memory‑leak pitfalls, and practical code solutions for smooth animations and accurate frame‑rate handling across iOS versions.
This article dives deep into Swift's Array implementation, explaining how the language allocates memory, the role of SIL and internal structs like _Array, _ArrayBody, and _ContiguousArrayStorage, and how copy‑on‑write ensures efficient mutation handling, all illustrated with real code snippets and debugger output.
This article explains the purpose, actions, and common types of locks in iOS—including spin locks, mutexes, semaphores, and read‑write locks—provides practical code examples, discusses underlying principles such as busy‑waiting and priority inversion, and compares performance across different lock implementations.
This article walks through a complete iOS package size reduction process, covering IPA structure, detailed component analysis, Xcode compile settings, code and resource optimizations, monitoring scripts, and best‑practice guidelines to keep the app lean and stable.
This article walks through a real iOS crash caused by mutating an NSMutableSet during enumeration, explains how the Objective‑C copy attribute works, compares shallow and deep copies for strings and collections, and shows the underlying runtime implementation with concrete code examples.
This article explores the purpose and implementation of UIKIT_EXTERN and related macros in iOS, explaining how they manage global constants, control symbol visibility across dynamic libraries, and provide practical examples of extern, static, and const usage for compilation optimization and conflict resolution.
This article provides a comprehensive, step‑by‑step exploration of Swift closures on iOS, covering their definition, different forms, practical usage scenarios, the compiler’s SIL generation process, capture list behavior, memory storage details, and best practices for avoiding reference cycles.