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

Mobile Development

11 min read

Why You Should Stop Misusing Kotlin’s lateinit and Let the Compiler Catch Bugs

The article explains how Kotlin's lateinit can silently bypass compile‑time null safety, leading to UninitializedPropertyAccessException crashes, and argues that using nullable types with safe‑call operators provides compile‑time guarantees, reduces runtime bugs, and improves code safety.

14 min read

HarmonyOS End-Cloud Integration: Migrating a Standalone App to Cloud-Enabled Architecture

This tutorial walks through upgrading a HarmonyOS health app from local-only storage to an end-cloud integrated architecture using AppGallery Connect, covering architecture design, data synchronization strategies, CloudDB modeling, SDK initialization, and development environment setup with DevEco Studio and Node.js cloud functions.

10 min read

ArkTS `import lazy`: One Keyword Cuts Cold-Start Bloat via Compiler-Runtime Loop

ArkTS introduces the `import lazy` syntax to defer module execution until first use, reducing cold-start latency by ~15% through compiler-runtime collaboration and integrated profiling tools that detect, mark, verify, and quantify redundant loads without rewriting call sites.

8 min read

HarmonyOS Compilation Troubleshooting: Log Levels, Error Codes & Debug Workflow for ArkTS

This guide teaches HarmonyOS developers to troubleshoot ArkTS compilation errors using log levels (ERROR/WARN/INFO/DEBUG), error code navigation via official documentation, common error patterns (syntax, imports, memory), and advanced techniques like debug-mode configuration, cache cleaning, and vendor version checks.

17 min read

Can AI‑Generated Code Replace Cross‑Platform Frameworks?

The article analyses how AI code‑translation tools can quickly produce parallel Android and iOS code, but argues that cross‑platform frameworks like KMP still provide essential value by keeping business rules in a single source, enforcing clear boundaries, and preventing long‑term drift that AI alone cannot manage.

20 min read

Reconstructing an AI App’s Waiting Experience with Flutter RUM Monitoring

This article explains how to use Alibaba Cloud's Flutter RUM SDK to correlate user actions, network requests, long‑tasks and errors, reconstructing the full “spinning page” scenario in AI applications, and shows how STAROps can pinpoint interface failures, client‑side blocks, and rendering bottlenecks with concrete integration steps and code examples.

4 min read

HarmonyOS APMS Fault Metrics: Multi-Dimensional App Health Monitoring

This article details HarmonyOS Application Performance Monitoring Service (APMS) fault metrics, explaining access via AppGallery Connect, four core functions — metric query, version comparison, dimension distribution, and TOP problem aggregation — and how real-time crash, freeze, OOM, and resource leak data enable proactive app health inspection.

47 min read

Building HarmonyOS Interactive Cards: Pomodoro Timer Widget with FormKit

This tutorial walks through building a HarmonyOS interactive desktop widget using FormKit, covering configuration, UI with @LocalStorageProp, FormExtensionAbility lifecycle, event handling via postCardAction, state machine design, and real-world pitfalls like formId extraction and background execution limits.

27 min read

HarmonyOS 7 Immersive Light Effects: Choosing Between ArkUI and HDS Material APIs

This article explains how to choose between ArkUI's uiMaterial and HDS's hdsMaterial interfaces for implementing immersive light effects in HarmonyOS 7, covering component classification, API usage, device capability considerations, and practical code examples for both component types.

13 min read

Mastering Android CLI: A Complete Guide for Developers

This guide explains why Android developers are shifting from IDE‑centric workflows to the Android CLI, shows how to install and initialize the tool, and provides practical command‑line examples for project creation, emulator management, SDK handling, documentation search, AI skill integration, and Android Studio interaction.

47 min read

Building a Foldable-Aware HarmonyOS Music Player with Dynamic Theming Using @ComponentV2

This article walks through building a HarmonyOS music player that adapts to foldable screens with distinct folded/expanded layouts and generates dynamic immersive themes from album colors using @ComponentV2, covering architecture, state management, and performance optimization.

6 min read

Android Resource Reliability: Token Bucket, Multi-Rate Limiting & Quota Design

This article explores Android's system-level reliability designs, including the TokenBucket rate limiter for logs and metrics, the MultiRateLimiter multi-window quota engine used for Toast rate limiting, and resource counting mechanisms like broadcast receiver limits, showing how Google prevents system overload from app misuse.

7 min read

ArkTS Memory Snapshot Clustering: Three Rules to Pinpoint Leaks in 100K+ Objects

This article details three clustering rules — shortest reference chain, name-plus-reference chain, and property-plus-reference chain — for analyzing ArkTS memory snapshots, enabling developers to automatically group 100,000+ objects and identify leak sources by retained size and allocation site.

15 min read

ArkTS Memory Leak Detection: LocalHandle Tool Pinpoints Leaks in Minutes, Not Days

This guide introduces the LocalHandle leak detection tool for HarmonyOS ArkTS, which uses smart instrumentation to identify memory leaks at creation time by checking for active handle scopes, reducing debugging from days to minutes with 100% accuracy and direct code-line navigation in DevEco Studio.

12 min read

UBports Releases Ubuntu Touch 24.04‑2.0 (OTA 2.0) – A Major Update After 9 Years

On July 24, 2026 UBports announced Ubuntu Touch 24.04‑2.0 (OTA 2.0), a comprehensive upgrade that jumps the Morph browser from Chromium 87 to 134, adds notch handling, printing, Widevine DRM, fscrypt v2 encryption, and expands support to over 20 devices, while detailing the two‑step upgrade path and known issues.