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

27 min read

Ctrip's CRN Framework Adaptation and Performance Optimization for HarmonyOS

This article details Ctrip's migration of its large‑scale React Native (RN) codebase to HarmonyOS using the custom CRN framework, covering technology selection, version upgrades, native component re‑implementation, component C‑ization, performance optimizations such as pre‑loading, TurboModule worker threads, instruction pruning, and future roadmap.

15 min read

JD's Self‑Developed HarmonyOS Image Library: Architecture, Implementation, and Performance Optimizations

This article details JD's custom HarmonyOS image library built with C++ and Taro, covering its background, technical design, core modules, performance monitoring, optimization techniques, quality assurance mechanisms, and future development plans to achieve high‑performance cross‑platform image loading for mobile applications.

11 min read

Understanding Android Power Consumption: Fundamentals, Components, and Measurement Tools

This article explains the basic concepts of Android power consumption, the components that contribute to battery drain, the role of power_profile.xml, and various measurement methods such as PowerMonitor, dumpsys batterystats, system power ranking, and Battery Historian, providing practical steps and tools for developers to analyze and optimize app energy usage.

24 min read

Technical Practice of Ctrip’s Market Insight Platform Using Donut for High‑Performance Cross‑Platform Mobile Development

This article details how Ctrip’s Market Insight platform leveraged the Donut framework to build a high‑performance, cross‑platform mobile application, covering background, technical challenges, technology selection, development workflow, multi‑login management, large‑list rendering optimization, push integration, build and release processes, encountered pitfalls, and the resulting efficiency and performance improvements.

12 min read

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.

8 min read

Introducing BlockFramework: A Mobile UI Decoupling Architecture for Android

BlockFramework is an open‑source Android client‑side framework that decouples business logic into reusable Blocks, offering clear separation, tree‑based UI assembly, rich communication patterns, unified development standards, and high‑performance features such as asynchronous view inflation and data binding.

8 min read

UIStackView Tutorial: A Comprehensive Guide to iOS Linear Layout

This tutorial explains UIStackView, Apple’s iOS 9 linear layout container that mirrors Flexbox concepts, covering axis, distribution, alignment, and spacing, showing how to add arranged subviews, hide them dynamically, adjust hugging and compression priorities, and noting its limitations such as lacking order, flex‑grow, and flex‑basis controls.

10 min read

Embedding Live Streaming Rooms into H5 Pages with Same‑Layer Rendering

By unifying the live‑room player with a same‑layer rendering component, exposing real‑time data through a communication layer, and using a pool‑based multi‑instance architecture that adapts to tablets and foldable screens, developers can embed native‑like immersive live rooms directly into H5 pages, simplifying integration and enabling future AI‑driven features.

11 min read

Understanding Android Dynamic Performance Framework (ADPF) and Its Performance‑Hint API

Android Dynamic Performance Framework (ADPF) lets apps and games send performance‑hint data—such as target work durations and preferred cores—to the kernel, enabling faster CPU frequency scaling and priority scheduling that mitigates the latency of PELT/WALT and DCVS, while developers use APIs like createHintSession and reportActualWorkDuration, though adoption remains limited.

26 min read

JD Finance HarmonyOS NEXT Migration: Architecture, Challenges, and Practices

This article details JD Finance’s end‑to‑end migration of its financial app to HarmonyOS NEXT, covering the system’s architecture, component selection, cross‑platform strategies, performance optimizations, new OS features, and lessons learned from the trial and official releases.

13 min read

iOS Live Activities Complete Implementation Guide with ActivityKit

This guide explains how to configure a Swift‑only target, define ActivityKit attributes, implement lock‑screen and Dynamic Island UI with ActivityConfiguration, manage creation, updates, and dismissal, handle permissions and server‑side push payloads, and work around network‑image restrictions using shared App Group storage.

16 min read

Overview and Usage of the Hvigor Build Tool for HarmonyOS Development

Hvigor is a TypeScript‑based build orchestration tool for HarmonyOS that manages tasks, project models, and configurations, integrates with DevEco Studio for consistent command‑line and IDE builds, supports lifecycle phases, custom tasks, plugins, and routing plugins, and provides detailed development guides and code examples.

10 min read

HarmonyOS NEXT Intent Framework: Overview, Use Cases, and Integration Guide

This article introduces HarmonyOS NEXT's Intent Framework, explains its distribution capabilities such as habit and event recommendations, skill invocation, and local search, showcases practical scenarios including movie ticket reminders and JD Finance services, and provides step‑by‑step integration instructions with code examples.

28 min read

How Dynamic Cross‑Platform UI Rendering Works on HarmonyOS, Android, iOS, and Web

This article explains the architecture and implementation of the Roma dynamic cross‑platform solution, covering its JavaScript‑VM based rendering pipeline, HarmonyOS integration challenges, resource packaging, view creation across JS, C++, and ArkTS layers, and the diff‑based update mechanism that enables seamless UI updates on multiple platforms.

17 min read

Implementing Dynamic Code Splitting and Hot Updates in React Native with Metro Bundler

This article explains how to analyze React Native bundle contents, customize Metro's module ID generation to achieve stable code splitting, and integrate the resulting base and feature packages with a hot‑update workflow that preloads the base bundle, loads feature bundles on demand, and handles loading failures on iOS.

24 min read

JD Finance HarmonyOS NEXT: From Zero to One – Architecture, Challenges, and Practices

This article details JD Finance's end‑to‑end development of a HarmonyOS NEXT version, covering background, feature selection, architectural layering, technical solution comparison, infrastructure construction, challenges, trial and official releases, new OS features, performance optimization, and future plans.

18 min read

Crash Convergence and Resilience Mechanisms in Android Applications

The team maintains an ‘opt’ branch for daily‑collected crash fixes, classifies unrecoverable system, device, SDK and framework errors, and employs a Handler‑based whitelist that catches and swallows known crashes while logging others, complemented by null‑safety, concurrency, database and OOM monitoring to keep Android app crash rates manageable.

10 min read

How Airbnb Instruments Android Apps to Capture User‑Centric Performance Metrics

Airbnb’s Android Page Performance Score (PPS) framework instruments fragments to collect user‑centric metrics such as TTFL, TTIL, MTH, ALT and RCLT, using a standardized logging config, LoadableView interface, and visibility algorithms, enabling detailed performance analysis and automated alerts for mobile teams.

10 min read

Understanding Software Architecture: Concepts, Layers, and Design Principles

Software architecture defines a system’s structural organization and its evolving design process, encompassing elements such as systems, modules, components, relations, and subsystems, and can be realized through vertical layered (presentation, business, data, base) or horizontal modular approaches that promote decoupling, testability, and maintainability while following the fit, simplicity, and evolution principles and supporting cross‑platform and dynamic implementation options.

22 min read

Design and Implementation of Baidu Android IM SDK and Public IM System

Baidu built a unified Android IM SDK and public instant‑messaging system that consolidates login, message routing, synchronization, notifications, and group chat into reusable client and server components, using a hybrid push‑pull model to deliver real‑time, secure communication while dramatically lowering development and maintenance costs across its product portfolio.

12 min read

How JD Boosted HarmonyOS App Development Using Taro – Architecture & Performance

JD leveraged the Taro cross‑platform framework to build a HarmonyOS native app, detailing the background partnership with Huawei, the technical solution choices, key features like Web‑style development, CSS optimizations, virtual lists, and mixed native modules, and presenting performance gains and future optimization plans.

6 min read

Practical Guide to Publishing Flutter Apps on Chinese App Stores: Challenges, Analysis, and Recommendations

This article shares a detailed experience of publishing a Flutter‑based logistics application across major Chinese app stores, analyzes the difficulty levels and specific review issues for each platform, and provides concrete recommendations to avoid common pitfalls and streamline the submission process.

9 min read

Implementing Page Performance Score on iOS: PPSStateMachine, Metrics, and Instrumentation

Airbnb’s iOS Page Performance Score implementation introduces a PPSStateMachine that ties a UIViewController’s lifecycle to metric collection—tracking first layout, initial load, scroll thread hangs, additional and rich content load times—using nanosecond timestamps, state‑machine protocols, and view‑responder discovery to emit standardized performance logs.

10 min read

Implementing Firework Like Animation Effect in Android Apps

The article walks through creating a firework‑style animation for Android like buttons by building a custom ParticleDrawingView that renders launch particles and exploding spark groups on a Canvas, using ValueAnimator with configurable durations and interpolators to control four animation phases and particle properties such as position, velocity, alpha, and rotation.

9 min read

HarmonyOS Push Notification Integration Guide: Sohu News Implementation

This guide details how Sohu News integrated HarmonyOS push notifications—covering DevEco Studio setup, certificate generation, profile configuration, client ID metadata, permission requests, token retrieval, and handling cold‑ and hot‑start push data—using the HarmonyOS NEXT SDK and AppGallery Connect services.

18 min read

Kotlin Multiplatform for HarmonyOS App Development

Kotlin Multiplatform enables developers to share a single Kotlin codebase across Android, iOS and the new Harmony Next OS—avoiding costly full rewrites—by converting Harmony OS TypeScript definitions to Kotlin, compiling to JavaScript or native binaries, though challenges remain in debugging, library compatibility, bundle size and threading support.

5 min read

Understanding Flutter Status Bar Height: Why MediaQuery.padding.top Returns 0

In Flutter, MediaQuery.of(context).padding.top reports the system UI inset rather than the actual status‑bar height, and when a Scaffold (especially with an AppBar) consumes this padding the value becomes zero, so developers must read the raw view padding via WidgetsBinding or MediaQueryData.fromView to reliably obtain the status‑bar height.

21 min read

Getting Started with Flutter: Motivation, Environment Setup, and Code Walkthrough

This article explains why the author chose to learn Flutter for cross‑platform app development, outlines a step‑by‑step Windows environment setup (including SDK download, PATH configuration, mirror sources, and IDE installation), and provides a detailed line‑by‑line explanation of the default main.dart demo with code snippets and suggestions for extending the sample.

27 min read

Building Scalable Mobile Apps for Supply Chain Logistics: Frameworks & Best Practices

This article examines the characteristics of mobile application development for supply‑chain logistics, covering device framework selection, backend service design, operational backend functions, and scenario‑driven user experience optimization, while highlighting differences from traditional PC web solutions.

40 min read

Comprehensive Guide to GetX in Flutter: State Management, Routing, Dependency Injection, and Practical Project Implementation

This article provides an in‑depth tutorial on using the GetX library for Flutter, covering its state‑management, routing, dependency‑injection features, code generation tricks, common pitfalls, and a step‑by‑step rewrite of a WanAndroid project with practical examples.

12 min read

A New Technical Solution for Android Nested Scrolling: NestedScrollFrameLayout

Introducing NestedScrollFrameLayout, a FrameLayout subclass that implements NestedScrollingChild, enables any wrapped view to participate in Android nested scrolling—including touch and fling—without modifying the child, offering one‑click integration, smoother continuous scrolls, and dramatically lower development and maintenance costs.

15 min read

Understanding and Analyzing Android ANR (Application Not Responding) Issues

This article explains Android ANR (Application Not Responding) fundamentals, detailing its four types, underlying causes such as main‑thread blocking and deadlocks, the system’s timeout mechanisms, step‑by‑step analysis workflow, trace interpretation, and practical best‑practice tips to prevent and resolve ANR problems.

33 min read

Kotlin Multiplatform: Language, Compilers, and Engineering Practices

The article examines Kotlin Multiplatform’s language design, its three dedicated compilers, artifact structure, and plugin ecosystem, critiques Gradle’s build‑system shortcomings, and details the team’s Bazel migration that delivers faster incremental builds while highlighting trade‑offs and future improvements for Kotlin‑Native, JS inter‑op, and tooling.

9 min read

Lessons from a Startup: Choosing Mobile and Backend Technologies, Team Management, and Pitfalls

The article recounts a developer’s experience in a small startup, detailing the rationale behind selecting uni‑app for cross‑platform mobile development, egg.js and MySQL for the backend, the challenges of rapid product iteration, team hiring, management practices, and practical advice to avoid common pitfalls.

13 min read

How to Achieve Instant H5 Page Load in WebView: Proven Optimization Techniques

This article explores common performance bottlenecks of WebView and H5 pages in mobile apps and presents a comprehensive set of optimization strategies—including preloading, rendering tweaks, network enhancements, and memory management—to achieve near‑instant page loads and improve overall user experience.

14 min read

Optimizing Cross‑Platform WebSocket Connections with Cronet for Mobile Live Streaming

By migrating the CatEar FM live‑streaming app’s WebSocket layer to Chromium’s Cronet network stack, the team unified cross‑platform code, added customizable DNS and proxy support, and cut handshake latency by roughly 150 ms on Android and 250 ms on iOS, paving the way for future HTTP/2 and HTTP/3‑based WebSocket transports.

16 min read

Cross‑Platform Architecture for WeChat Pay: Reducing Code, Improving Quality and Productivity

This article describes how a C++‑based cross‑platform framework and a unified routing mechanism were built for WeChat Pay to eliminate platform‑specific bugs, streamline data flow, improve crash stability, cut code size by nearly 45%, and boost development productivity across iOS and Android.

11 min read

Optimizing Rust Android Dynamic Library Size: Strategies and Results

This article details how the author reduced the size of a Rust‑based Android JNI dynamic library from 495 KB to 95 KB by adjusting compiler optimization levels, enabling LTO, switching panic handling to abort, removing unused strings, applying panic_immediate_abort, and crafting a custom linker script, while providing code snippets and size comparison tables.

19 min read

Why HarmonyOS Is the Next Big Platform for Mobile Developers

This article introduces HarmonyOS, its background, advantages, application forms, development benefits, distributed debugging, multi‑device adaptation, AI integration, the ArkTS language, ArkUI framework, Ability concept, ArkCompiler, and practical steps for setting up the DevEco Studio environment, helping developers quickly grasp the ecosystem and start building apps.

33 min read

Implementing Offline‑Capable H5 in Mobile Apps Using WebView and JSBridge

This article explores the architecture and implementation of hybrid mobile applications that run H5 pages with offline package support, detailing communication schemes between JavaScript and native code, JSBridge SDK design, offline package construction, management, version control, and related stability and security considerations.

13 min read

Technical Architecture Upgrade of Mobile QQ: Decoupling, Refactoring, and NT Architecture Evolution

The article chronicles Mobile QQ’s transformation from a 20‑year‑old monolithic codebase riddled with technical debt into a modular, cross‑platform system by decoupling business modules, refactoring millions of lines of code, introducing a unified C++ NT architecture, and implementing extensive migration, testing, and performance optimizations that cut compilation time by half and dramatically improve development efficiency.

13 min read

Why iOS App Storage Size Mismatches System Settings and How Kuaishou Fixed It

This article investigates why the storage size shown inside iOS apps often differs from the total size displayed in the iPhone Settings, analyzes four main causes—including app bundle size, binary vs decimal units, measurement scope, and cache path handling—and demonstrates how Kuaishou aligned its storage reporting with the system through experiments and code changes.

16 min read

iOS App Size Reduction at Tongcheng Travel: Methodology, Analysis, Detection Scripts, and Optimization Techniques

This article details Tongcheng Travel's comprehensive iOS app slimming process, covering background importance, size‑reduction techniques, multi‑dimensional analysis, Python‑based detection scripts, compiler LTO optimization, resource governance, platform automation, and the resulting 29% package size decrease that boosted download conversion.

24 min read

Implementing a Flutter Hot‑Fix Solution for ZA Bank: Architecture, Process, and Lessons Learned

This article details ZA Bank’s implementation of a Flutter hot‑fix solution, describing the evaluation of various approaches, the selection of a FlutterWeb‑based page‑downgrade strategy, the design of backend patch management, challenges such as font loading and package size, and the resulting high fix rate and performance improvements.

13 min read

Understanding JSBridge in Hybrid Mobile App Development

JSBridge is a bidirectional communication layer that lets hybrid mobile apps combine native performance with web flexibility by allowing JavaScript to invoke native functions and native code to call back into the WebView, using techniques such as URL schemes, injected APIs, and platform‑specific evaluateJavascript methods.

15 min read

Designing a Dynamic Performance‑Degradation System for iOS & Android Apps

An in‑depth guide shows how to build a client‑side dynamic degradation framework for iOS and Android that monitors CPU, memory, battery and network speed, classifies them into levels, and notifies the business layer to adapt UI and network usage for smoother user experience.

7 min read

Latest AI Agents, Syntax Highlighting, IDE Services, Android 15 Beta, Astro 4.6, and GParted Live: What’s New in Tech

This roundup covers Codium AI's new coding agent, Nue's lightweight Glow syntax highlighter, JetBrains' enterprise IDE services, the first Android 15 beta with edge‑to‑edge defaults, Astro 4.6's i18n routing improvements, and the GParted Live 1.6.0‑3 stable release, highlighting key features and updates across development tools and platforms.

4 min read

What’s New in Android 15 Developer Preview? Edge‑to‑Edge UI, NFC, and More

The first Android 15 developer preview introduces default edge‑to‑edge apps, smoother NFC interactions, character‑spacing text rendering, system‑level app archiving, and several new APIs such as ProfilingManager, enhancing both user experience and developer capabilities on Pixel devices.

16 min read

Performance Optimization of the Five-Star Store Mini Program: A Comprehensive Case Study

This article details the background, actions, and future outlook of performance and experience optimization for the Five-Star Store mini program, covering template handling, JS error reduction, rendering speed improvements, package size reduction, and systematic testing and iteration mechanisms across multiple device platforms.

34 min read

WebView-Based Offline H5 Implementation and JSBridge Design for Mobile Apps

This article details a hybrid WebView architecture for mobile apps that enables offline‑packaged H5 pages, describes bidirectional JSBridge communication methods, outlines a platform‑agnostic JavaScript SDK, explains package structure and version management, and covers development tools, UI integration, and security measures for stable cross‑platform deployment.

13 min read

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.

4 min read

Bilibili Completes Beta Development of HarmonyOS Native Video Application

Bilibili has finished beta development of its HarmonyOS native video app—the first bullet‑comment‑enabled video client on the platform—offering medium‑long video playback, personalized recommendations, search, hot lists and interactive features, while cutting build times from over twenty to under five minutes and targeting a full commercial launch with expanded services across smartphones, tablets, displays and vehicles in Q4 2024.

13 min read

Optimizing Gray Release Process and Automation at DeWu App

DeWu streamlined its gray‑release workflow by standardizing the release rhythm, shifting publishing earlier, and adding automated plan creation, pre‑release checks, dependency reminders, auto‑packaging, test‑regression alerts, event subscriptions, and market monitoring, cutting overall release delay by over 70 % and delivering full releases on average one day sooner while providing clear quarterly quality and performance metrics.