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

9 min read

How xtool Enables Cross‑Platform iOS App Building on Linux and Windows

xtool is an open‑source, cross‑platform Xcode replacement that lets developers build, package, and sign iOS applications on Linux or Windows by extracting the Xcode toolchain, generating a Swift SDK, using SwiftPM for compilation, handling resources, creating IPA files, and managing Apple developer authentication, though it has notable limitations such as lack of Interface Builder support.

14 min read

Best Practices for Reusing ViewModel Logic Across Multiple Android Screens

This article examines common challenges of sharing user interaction logic across multiple Android screens using ViewModel, compares four reuse strategies—including base class inheritance, helper classes, Kotlin class delegation, and interface default functions—and recommends the interface default‑function approach as the most flexible and maintainable solution.

13 min read

The Origin and Rise of Android: From a Small Startup to a Global Mobile OS

From Google's early recruitment challenges to acquiring a tiny startup that built a Java‑based demo system, Android emerged as an open‑source mobile operating system, leveraging Dalvik, overcoming hardware competition, and ultimately dominating the global smartphone market through rapid development and strategic alliances.

8 min read

Android 16 AppFunctions API: A New Mechanism for App Function Exposure and System Integration

Android 16 adds the AppFunctions API, letting apps expose specific functions through an AppFunctionService that the system indexes via AppSearch and invokes with AppFunctionManager, so AI assistants and system search can discover and execute actions like ordering pizza or booking flights while respecting required permissions and threading constraints.

14 min read

How to Shrink Kotlin/Native Binary Size for Mobile Apps: Practical Optimizations

This article details the Alipay Tech team's systematic approach to reducing Kotlin/Native binary size for Android, iOS, and HarmonyOS by tuning compiler parameters, leveraging LLVM optimization passes, and applying fine‑grained export and dead‑code‑elimination strategies, complete with test methods and measurable results.

6 min read

Implementing Single-Activity Architecture with Jetpack Compose Navigation

The article explains how to adopt a single‑Activity architecture in Jetpack Compose by using the Navigation component’s NavHost and NavController, encapsulating navigation calls in an Action class, and exposing module‑specific NavGraphs, resulting in a clean, scalable routing solution for modern Android apps.

48 min read

Understanding Android VectorDrawable and AnimatedVectorDrawable: Usage and Source Code Analysis

The article explains Android’s VectorDrawable format for SVG‑like scalable graphics, details its XML schema, shows how to create static vectors, gradients, and clip‑paths, then examines the underlying source‑code flow, and finally describes AnimatedVectorDrawable’s property‑based animations, inflation process, and runtime execution.

20 min read

Tencent's Kuikly: Kotlin Multiplatform Framework Achieves Native Performance with Dynamic Updates

Tencent open-sources Kuikly, a Kotlin Multiplatform framework used in 15+ apps with billion daily PVs, achieving native performance via two-tree rendering and declarative DSL while supporting dynamic updates across Android, iOS, HarmonyOS, Web, and mini-programs.