Tagged articles
UI Thread
11 articles · Page 1 of 1
Flutter 3.29 merges the Android/iOS platform thread with the Flutter UI thread, causing Dart code to run on the app’s main thread, simplifying task‑runner coordination, microtask handling, and synchronous platform interactions—while improving rendering and text input, it may break unadapted plugins unless the feature is disabled via metadata.
DartFlutterPlatform Channels
0 likes · 7 min read


HomeTechMar 22, 2023 · Mobile Development
This article analyzes Android layout rendering performance issues and presents optimization strategies including AsyncLayoutInflater, X2C framework, and custom view factory approaches to reduce rendering time by 20-35%.
AndroidAsyncLayoutInflaterRendering
0 likes · 10 min read

To eliminate frame drops caused by animated PopupWindow and Snackbar conflicts, the article shows how moving costly view inflation and show/dismiss operations to a dedicated HandlerThread—while still invoking show() on the UI thread—creates a separate UI thread that respects Android’s thread‑checking rules and keeps animations smooth.
AndroidMultithreadingPopupWindow
0 likes · 20 min read

This article explains why Android forbids UI updates from background threads, analyzes the underlying framework source code to trace the view hierarchy and thread checks, and presents several techniques—both general and view‑specific—to safely modify UI without triggering exceptions.
AndroidBackground ThreadSource Code Analysis
0 likes · 17 min read

This article provides a comprehensive technical analysis of Flutter's rendering pipeline, detailing the roles of the UI and GPU threads, the step‑by‑step process from VSync registration to rasterization, and compares Flutter’s approach with Android and Chromium rendering architectures.
FlutterGPU ThreadUI Thread
0 likes · 24 min read

This article explains why performing UI updates—even on the main UI thread—can still trigger CalledFromWrongThreadException when a Dialog is created on a background thread, by analysing ViewRootImpl, Handler, Looper, and the view hierarchy with practical code examples.
CalledFromWrongThreadExceptionDialogLooper
0 likes · 16 min read


JD TechMar 14, 2018 · Mobile Development
The article describes the background, architecture, and implementation details of a non‑intrusive Android SDK that monitors UI‑thread stalls, collects performance data, aggregates it on the server, and automatically generates work orders to help developers pinpoint and resolve lag issues efficiently.
AndroidPerformance MonitoringSDK
0 likes · 11 min read

The article examines common Android Toast problems, detailing exceptions like WindowManager$BadTokenException and sporadic display failures, explains how Toast uses a system TYPE_TOAST window, analyzes the underlying source code, and offers practical solutions to prevent and fix these issues.
AndroidBinder ProxyException Handling
0 likes · 11 min read

This article describes the design and implementation of a non‑intrusive Android SDK that monitors main‑thread UI lag by replacing the Looper printer, sampling stack traces, aggregating data on the server, and automatically generating work orders for precise performance optimization.
AndroidPerformance MonitoringSDK
0 likes · 10 min read

This article explains iOS’s event processing pipeline—from hardware events through the RunLoop’s observer, source, timer, and dispatch mechanisms—detailing why UI must run on the main thread, how CALayer and Core Animation render, and the roles of CADisplayLink, NSTimer, and async display techniques.
AsyncDisplayCADisplayLinkRendering
0 likes · 20 min read

This article explains how the browser’s UI thread manages a task queue to sequentially process UI‑update operations, illustrated with a button‑click example that creates multiple tasks and demonstrates the thread’s idle‑time processing of queued updates.
Frontend DevelopmentJavaScriptTask Queue
0 likes · 2 min read
