Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Latest articles

31 min read

Android Plugin Architecture Overview and Implementation Guide

This guide explains Android pluginization, showing how a host app can dynamically load separate APK modules—including native libraries, classes via a custom DexClassLoader, and mixed resources—while supporting hot updates, modular isolation, and reduced initial size, and details each loading step and manager implementation.

5 min read

GPU Frequency Scaling on Qualcomm Adreno Using the Linux devfreq Framework

Using Qualcomm’s Adreno GPU as a case study, the article explains how the Linux devfreq framework enables GPU frequency scaling by creating a kgsl devfreq device and an msm‑adreno‑tz governor, detailing their initialization, event handling, target‑frequency computation, and the kernel callbacks that apply the new rates.

10 min read

Android APK Size Optimization: Removing Duplicate Resources and Image Compression with a Gradle Plugin

This article explains how the Android resources.arsc file is generated, identifies the problem of duplicate and uncompressed image resources in multi‑module projects, and presents a Gradle‑based solution that inserts a custom task after processReleaseResources to deduplicate resources, compress images using pngquant, guetzli and cwebp, and repack the .ap_ files, resulting in significant APK size reduction.

23 min read

Optimizing Android Process Startup in Xigua Video: Strategies, Implementation, and Benefits

This article details how Xigua Video analyzed and optimized the startup of multiple Android subprocesses—including push, mini‑app, sandboxed, and exec processes—by applying on‑demand loading, SDK integration, and monitoring techniques, resulting in measurable performance and quality improvements.

3 min read

Apple's EU iOS Side‑Load Policy and Detection Mechanisms

From March 2024, Apple will roll out EU‑only rules that permit iOS sideloading, open browsers, default‑browser choice, and alternative stores and payments, while requiring sideloaded apps to pass Apple’s certification, and limiting the feature to verified EU users through Apple‑ID billing address, device region, type and location data, with a special detection check for mainland‑China models based on known iOS code and community guesses.

8 min read

Apple’s EU DMA‑Driven Changes to iOS, App Store, and Alternative App Distribution

Apple announced a series of iOS, browser, App Store, alternative payment, and developer fee changes required by the EU Digital Markets Act, introducing new APIs, security safeguards, alternative app store options, and revised commission structures that will roll out with iOS 17.4 in the European Economic Area.

17 min read

Upgrading Tencent Video Search from Hippy 2.0 to Hippy 3.0: Process, Optimizations, and New Features

The Tencent Video Search team migrated its search pages from Hippy 2.0 to Hippy 3.0, eliminating animation, image and style inconsistencies, adding a native horizontal‑scroll component, and applying engine pre‑loading, JSI calls and CSS optimizations that cut rendering time by up to 30 % and dramatically improved development efficiency and cross‑platform consistency.

10 min read

Package Size Optimization: Large Resource Detection, Unused Assets Scanning, and Resource Size Gatekeeping for Mobile Apps

This article describes a systematic approach to reducing mobile app package size by detecting oversized resources, scanning unused assets, enforcing size checkpoints during development, and integrating automated validation into the CI/CD pipeline, illustrated with tools, workflows, and results.

26 min read

UICollectionViewCompositionalLayout Complete Guide

This guide explains how iOS 13’s UICollectionViewCompositionalLayout, together with Diffable Data Source, lets developers define items, groups, and sections using flexible size specifications, nested groups, orthogonal scrolling, custom and supplementary views, and background decorations to build complex, dynamic collection view layouts.

12 min read

Mac App Store Development: App Sandbox and Security Essentials

Developers targeting the Mac App Store must enable the mandatory App Sandbox and configure appropriate entitlements, privacy descriptions, and security‑scoped bookmarks to control file, hardware, network, and inter‑process access, while using App Groups, ATS, and supported IPC methods for secure, compliant macOS apps.

6 min read

Is Building a WeChat Mini‑Program Store Hard? Key Entry Points After Launch

The article examines how companies like Jiumu Wang and Xikadegao use training and Tencent Cloud to boost performance, outlines three development approaches for a WeChat mini‑program store, and details the various user entry points such as search, nearby listings, QR codes, and third‑party platform features.

20 min read

Building a Standardized Low-Code Development System for React Native

The article details how the Tango framework creates a standardized, AST‑driven low‑code system for React Native by integrating cloud‑phone‑based real‑device preview, visual building tools, and unified runtime/component/data management to cut development costs, improve code reuse, and streamline cross‑platform mobile app creation.

15 min read

Overview of Embedded ROM Flashing Processes and Online Programming Techniques

The article explains embedded ROM updating terminology, compares factory‑level burner programming with board‑level online flashing, details the boot sequence and U‑Boot implementation, outlines security signatures, common USB‑related issues, and the evolution of flash storage, concluding that online flashing offers low‑cost, scalable, high‑speed production for smartphones.

13 min read

Understanding and Optimizing Android Jank (Lag) in Mobile Applications

The article explains Android jank, defines Google and PerfDog metrics, identifies direct and indirect causes, recommends profiling tools such as Systrace, Perfetto and APM, and details a Wesing case study where breaking tasks, lazy loading, view‑hierarchy reduction and thread off‑loading cut PerfDog jank by roughly half, concluding with a checklist for systematic detection and mitigation.

20 min read

How NetEase Cloud Music Supercharged RN with Hermes, Fabric, and TurboModule

This case study details NetEase Cloud Music's migration from React Native 0.60 to 0.70, evaluating performance, bundle size, memory usage, and stability while describing the practical integration of Hermes, TurboModule, and Fabric and the automation that reduced upgrade effort across 100+ RN modules.

10 min read

Step-by-Step Guide to Building a HarmonyOS Demo App with Login, Register, and Home Pages

This tutorial walks through creating a complete HarmonyOS demo project without backend integration, covering project setup, constant files, login and registration pages, navigation tabs, home page components, search, list, refresh, and custom input components, all illustrated with code snippets and screenshots.

3 min read

What’s New in Android Studio Hedgehog 2023.11? Boost Performance and Battery Life

The Android Studio 2023.11 (Hedgehog) stable release brings performance and battery‑life enhancements, integrated Android Vitals in App Quality Insights, a new Power Profiler, an SDK Upgrade Assistant for Android 14 migration, and various UI and tooling improvements for developers.

13 min read

An Overview and Hands‑On Guide to Developing with HarmonyOS (Huawei’s Multi‑Device OS)

This article introduces Huawei’s HarmonyOS, explains its all‑scenario, distributed architecture and key features, compares it with Android’s kernel and performance, discusses market and policy implications, and provides a step‑by‑step tutorial for setting up DevEco Studio and creating a first HarmonyOS app.

9 min read

Implementing Audio Charts in SwiftUI for iOS Accessibility

This tutorial shows how to create a SwiftUI bar chart, define a DataPoint model, and enhance its accessibility by conforming to AXChartDescriptorRepresentable and applying the accessibilityChartDescriptor modifier, enabling iOS 15’s Audio Charts feature that conveys chart values through pitch‑varying VoiceOver tones.

17 min read

Airbnb’s Journey from Epoxy/UIKit to SwiftUI: Evaluation, Migration, and Lessons Learned

Airbnb’s three‑stage migration from its custom Epoxy/UIKit stack to SwiftUI involved extensive evaluation, rebuilding the design system with flexible style protocols, bridging UIKit and SwiftUI, adopting one‑way data flow, extensive testing and training, resulting in six‑fold code reduction, comparable performance, widespread production adoption, and higher developer productivity despite remaining framework challenges.

6 min read

Getting Started with Huawei DevEco Studio for HarmonyOS Application Development

To begin developing HarmonyOS apps with Huawei DevEco Studio, download and install the IDE and required SDKs, configure Node.js and OHPM, verify the environment, create a new Stage‑model project using the Empty Ability template, explore the generated ArkTS directory structure, compare it to Android projects, and run the app on an emulator.

21 min read

Design and Implementation of a Multi‑Container Hot‑Update Solution for Game SDKs

The multi‑container hot‑update framework designed for Bilibili’s game SDKs combines a dynamic routing protocol with plugin, dynamic‑template, and web containers, enabling rapid feature delivery, low‑cost gray‑rollouts across platforms, high installation success, and mitigated integration pitfalls, thereby improving stability and operational efficiency.

15 min read

Android Logging System Analysis: Architecture, Implementation, and Log Loss Cases

The article dissects Android’s logging system, detailing Java, native, and kernel interfaces, the liblog and logd daemon architecture, logcat usage, common log‑loss scenarios such as socket failures and buffer overflows, and the significant CPU, memory, I/O, and power resources the system consumes.

18 min read

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.

13 min read

Video Experience Optimization: Technical Improvements and Performance Analysis

The report details how targeted technical enhancements—refined encoding pipelines, playback logic tweaks, and start‑up caching—address mobile video challenges such as latency, stutter, and desynchronization, yielding up to 25 % less stutter, a 42.8 % drop in failures, and nearly 50 % faster first‑frame loading while outlining future testing and cross‑team optimization plans.

13 min read

How Hema Integrated iOS Live Activities and Huawei HarmonyOS Real‑Time Notifications for Delivery & Dining

This article details Hema's technical implementation of iOS Live Activities and Huawei HarmonyOS real‑time notifications across delivery and in‑store dining scenarios, covering background, deployment timeline, notification content design, integration steps, push token handling, activity ID generation, UI adaptations, edge‑case handling, and future expansion plans.

18 min read

Xima React Native: Current Status, Architecture, Performance Optimization, and Future Directions

Xima’s React Native platform now powers dozens of services and tens of millions of daily page views, achieving sub‑second startup through RAM‑bundle and Hermes upgrades, bundle splitting, container caching, lazy loading, optimized list and image handling, while the upcoming JSI‑based Fabric, Turbo Modules and CodeGen architecture promises further latency reductions and smoother user experiences.

8 min read

iOS Interaction Blocking: Intercepting User Events at UIApplication Level

To globally block all user interactions—including touches, motion, remote control, and press events—developers can subclass UIApplication and override its sendEvent: method, providing a disableUserInteraction: API with timed re‑enabling and a counter to safely manage concurrent disable requests.

19 min read

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.

15 min read

Design and Implementation of a High‑Performance Code Coverage Collection Solution for Android Apps

The paper presents a high‑performance Android code‑coverage solution that uses standard reflection to read the ClassLoader’s ClassTable, achieving over five‑times faster collection than existing tools while remaining stable, compatible, multi‑process capable, and enabling incremental, cloud‑based reporting for reducing app size.

13 min read

TheRouter-iOS: A Lightweight Routing Middleware for Mobile Apps

TheRouter-iOS is a lightweight, annotation‑driven routing middleware that brings Java‑style dependency injection, hard‑code elimination, dynamic redirection, interceptors, and flexible navigation to iOS, offering a unified solution for complex mobile architectures and seamless integration with Android and web components.

27 min read

How Eleme’s MorJS Enables One‑Code‑Base Across Mini‑Programs and Web

This article reviews the evolution of cross‑platform technologies, explains Eleme’s unique approach of using a mini‑program DSL for multi‑end deployment, and details the static compilation plus runtime compensation strategy that powers the open‑source MorJS framework for seamless code reuse across mobile mini‑programs, plugins, sub‑packages, and web applications.

29 min read

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.

12 min read

Applying the 10X Rule to Mobile Development: LinkedIn’s Journey to Weekly Releases

The article explains how LinkedIn adopted the 10X thinking to transform its mobile development process, introducing aggressive goals, static analysis, distributed builds, rapid testing layers, and a weekly release cadence to dramatically improve engineering efficiency and product delivery.

8 min read

Understanding Android ActivityThread: Initialization, ContentProvider, Rendering, and ANR Causes

This article explores Android's ActivityThread class, detailing its role as the bridge between system and app processes, the initialization flow via main(), the use of ContentProvider for SDK startup, activity rendering triggers, and how SharedPreferences can cause ANR through QueuedWork.waitToFinish().

10 min read

Inside Meta’s Threads: How the Viral App Was Built for Mobile and Backend

The article dissects Meta's Threads app, detailing its explosive user growth, the mobile engineering choices for Android and iOS—including universal APKs, Jetpack Compose UI, and large share extensions—while also revealing the Python‑based Cinder backend, performance optimizations, startup profiling, and the extensive code sharing with Instagram.

12 min read

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.

14 min read

Perfetto: Android Performance Tracing Tool – Concepts, Usage, and Analysis

This article introduces Perfetto, the Android platform‑level tracing tool, explains its architecture and data sources, details how to record and import trace files, demonstrates analysis features such as slice, counter and lock‑contention views, provides SQL query examples, and shares practical troubleshooting cases for mobile developers.

13 min read

From Intern to Senior Engineer: Lessons on Writing Quality Android Code

This article shares a senior engineer’s journey from internships to three years at Taobao, offering practical advice on writing readable, high‑performance Android code, mastering design principles, handling performance metrics, and maintaining a growth mindset while contributing to a mobile‑focused tech team.

9 min read

How We Cut Feed Lag in iQIYI Kids App: A Deep Dive into Mobile Performance Optimization

This case study details the performance bottlenecks of the iQIYI Kids feed on low‑end devices and presents a series of engineering solutions—including async card rendering, preloading strategies, image pre‑decoding, and cache optimizations—that reduced scroll hitch time to 1.4 ms, dramatically improving user experience.

20 min read

Comprehensive Guide to SwiftLint: Working Principles, Configuration, Custom Rules, and Performance Optimization

This article explains the workings of SwiftLint, a static code analysis tool for Swift, covering its architecture, built‑in rules, configuration options, custom rule creation, UIWebView deprecation detection, and advanced build‑time optimizations to improve linting efficiency in mobile development projects.

13 min read

Common Memory Leak Issues in Android and iOS Development

The article outlines frequent memory‑leak pitfalls in Android (such as anonymous inner classes, static singletons, unregistered listeners, unclosed streams, and lingering animations) and iOS (including block retain cycles, strong delegate references, NSTimer retention, unmanaged CoreFoundation objects, and dispatch_after), and provides concrete code‑level remedies to prevent out‑of‑memory crashes.

11 min read

Multi-Code Scanning Framework and Optimization for Mobile Apps

The article details how a mobile app’s scanner was re‑engineered from single‑code to multi‑code detection by overhauling the logic pipeline, adding UI overlays, implementing a rotation‑and‑scale transformation algorithm, integrating iOS Vision alongside the existing SDK, applying confidence filtering, deduplication, edge‑intelligence prediction, and memory‑optimized caching, ultimately boosting recognition rates by over 30 percentage points and reducing miss‑detections.

11 min read

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.

21 min read

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.

13 min read

Debugging React‑Native White‑Screen Crashes by Analyzing Metro Bundling and Extracting Code‑Feature Patterns

The article walks through a real‑world React‑Native white‑screen crash, explains how the Metro bundler transforms source code into a jsbundle, extracts two distinctive code‑feature patterns (e.default = v and return (0, l.default)(b,[{)), and demonstrates how these patterns can be used to locate the original component files responsible for the error.

18 min read

Baidu APP iOS Package Size Optimization: Image Optimization Techniques

The article details Baidu APP iOS package size reduction by identifying and removing unused images, converting resources to Asset Catalogs, and leveraging HEIC and appropriate compression, achieving a 9.75 MB saving while outlining scripts, regex extraction methods, and best‑practice recommendations.

7 min read

HorStickyNavLayout: A Sticky Navigation Layout for RecyclerView with Interactive Prompt

This article introduces HorStickyNavLayout, a custom Android ViewGroup that enhances RecyclerView horizontal scrolling with a sticky footer prompting users to discover more content, detailing its architecture, nested scrolling handling, fling behavior, and animation logic to improve interaction without extra item views.

31 min read

Deep Dive into Android Activity Launch Process and Framework Implementation

This article provides an in‑depth analysis of Android’s Activity launch mechanism, tracing the client‑side startActivity call through the framework layers, system_server services, AIDL interfaces, transaction handling, and the execution of lifecycle callbacks such as onCreate, onStart, and onResume, with extensive code excerpts.

16 min read

Android Accessibility Framework for WeChat: Design, Implementation, and Walk‑through Tools

WeChat’s Android accessibility framework abstracts common perceivable, operable, and understandable requirements into reusable rules, automatically enlarges touch targets, generates unified content descriptions, and includes a walk‑through verification service, enabling developers to efficiently implement scalable accessibility features for millions of visually or hearing‑impaired users.

17 min read

Monorepo Full-Source Strategy for Mobile Development: Challenges, Solutions, and Practice

This article examines the drawbacks of multi‑repo development for large mobile apps, explains the concepts of monorepo and full‑source, and details ByteDance's BitSky implementation—including migration phases, Bazel build migration, dependency management, developer tools, and measurable efficiency gains.

14 min read

DropBoxManagerService Source Code Analysis and Client Log File Management Design

The article examines Android's DropBoxManagerService architecture, its configurable file retention policies, naming conventions, atomic operations, and broadcast mechanisms, then applies these patterns to propose a client‑side log management system using a producer‑consumer model with prioritized temporary storage, rename‑based reporting, and FileObserver‑driven collection respecting network, data, timing, priority, and battery constraints.

14 min read

Flutter Performance, Layout, and Memory Optimization Techniques

This article explains how to detect and resolve performance bottlenecks in Flutter apps by using compile modes, profiling tools, layout tree insights, widget build optimizations, const constructors, list view strategies, raster thread tuning, and memory‑saving practices such as oversized‑image detection and layer separation.

10 min read

How Youku Optimized Video Playback for Foldable Phones: A Technical Deep Dive

This article examines Youku's systematic approach to adapting its video platform for foldable smartphones, covering market background, three optimization directions, the design of a responsive SDK, concrete UI improvements, technical implementation details, and future prospects for richer foldable experiences.