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

12 min read

Locating Native Memory Leaks in HarmonyOS Apps: Complete Profiling Workflow

This article details common causes of native memory leaks in HarmonyOS apps and provides a step-by-step workflow using DevEco Profiler's Allocation template to reproduce, identify, analyze, and fix leaks via Native Heap and call stack analysis, illustrated with a real-world case study.

13 min read

Android File Reliability: Atomic Writes, Triple Redundancy & Zero-Copy Optimization

This article details Android's file reliability design patterns including atomic write protocols, triple-redundancy fault tolerance, transactional file updates, RAII file descriptor management, zero-copy optimization, dynamic storage trimming strategies, and filesystem-level quota and reservation mechanisms.

20 min read

Publish HarmonyOS Libraries to OpenHarmony: DevEcoCli & DevEcoCode Complete Workflow

This guide demonstrates the complete six-step workflow for developing and publishing HarmonyOS third-party libraries to the OpenHarmony central repository using DevEcoCli and DevEcoCode, covering account setup, RSA key configuration, HAR module creation, oh-package.json5 requirements, release-mode building, and ohpm publishing with troubleshooting tips.

10 min read

DevEco Code 0.1.3 & DevEco CLI 1.2.0 Released: Goal Mode Upgrades, ArkTS Accuracy Boost, New CLI Commands

Huawei releases DevEco Code 0.1.3 and DevEco CLI 1.2.0 with enhanced ArkTS code generation, new static analysis tools, Goal mode improvements, and comprehensive CLI commands for HarmonyOS app development including build, run, emulator management, and MCP services.

15 min read

Cut HarmonyOS Peripheral Driver Adaptation from Weeks to Days with AI-Powered Skill

This article details how the usb-driver-dev Skill for OpenCode reduces HarmonyOS USB-HID peripheral driver adaptation from 2-3 weeks to 1-2 days by combining knowledge injection, template reuse, and automated compile-fix loops, demonstrated through a 10-step workflow for a drawing tablet.

14 min read

HarmonyOS Wearable App Development: A Complete Beginner's Guide

This guide covers HarmonyOS wearable app development from fundamentals to distribution, including cross-device continuation, rotating crown and gesture interactions, ArkTS/ArkUI frameworks, JS-like paradigm for lightweight wearables, design guidelines, best practices for architecture and security, debugging, performance tuning, and AppGallery Connect publishing.

15 min read

HarmonyOS 7 Local LLM Integration: Capabilities, Benchmarks & Engineering Guide

This article details integrating local LLMs into HarmonyOS apps, covering use cases like narrative generation and offline privacy, real-world benchmarks on Mate 60 Pro with Qwen2.5-0.5B, architecture using ArkTS and llama.cpp, performance optimizations via O3/LTO/KleidiAI, and key pitfalls like token limits and UI threading.

7 min read

Can Android 17’s hardware‑level memory limits end the ‘getting slower over time’ problem?

The article explains how Android’s historic lack of per‑app memory caps let rogue background apps exhaust device RAM, causing lag and crashes, and how Android 17’s new hardware‑enforced memory limits, precise leak detection, and industry‑wide fair‑memory standards aim to eliminate this long‑standing slowdown issue.

12 min read

HarmonyOS AppFreeze-Analysis: Automated Root-Cause Diagnosis for App Freezes

This article details a systematic 7-step workflow for diagnosing HarmonyOS app freezes, moving from experience-driven manual log analysis to automated AI reasoning that correlates stack traces, EventHandler queues, sampling stacks, and Binder/IPC data to pinpoint root causes in minutes.

19 min read

HarmonyOS 7: Spatialization & Multi-Device Adaptation — 5 Page Types to Prioritize First

This guide explains how to combine spatialization and multi-device adaptation in HarmonyOS 7, recommending that ordinary apps first refine five core page types — home/workbench, list/detail, edit/form, empty states, and settings — by restructuring information hierarchy, master-detail layouts, confirmation boundaries, and responsive width thresholds before adding visual effects.

6 min read

KMP&CMP Community Boosts ArkTS-Kotlin Interop with Advanced Syntax & Compile-Time Type Solidification

Kuaishou contributes to the KMP&CMP community, expanding cross-language syntax support to 78% coverage with complex generics, function expressions, abstract classes, and typealias, while introducing KSP-powered compile-time type solidification to solve runtime generic erasure in ArkTS-Kotlin interop.

16 min read

DevEcoCli: Unified CLI for HarmonyOS Development with AI Integration

This guide introduces DevEcoCli, a unified command-line tool that wraps DevEco Studio's toolchain (ohpm, hvigor, hdc, emulator, hilog) for HarmonyOS app development, covering installation, core commands (create, build, run, emulator, docs, skills), and integration with AI coding agents like Claude Code and Cursor for natural-language-driven workflows.

10 min read

Building a WeChat Mini‑Program Health Management System with AI in 20 Minutes (Spring AI 2.0 + Spring Boot 4 + Vue 3)

In just 20 minutes, the author uses Cursor AI to generate a full‑stack WeChat mini‑program for personal health management, featuring an AI‑driven health consultant, a Spring Boot 4 backend with JWT security, MySQL storage, and a Vue 3 admin console, and explains the architecture, routing, and deployment details.