Tagged articles
Activity
13 articles · Page 1 of 1
The article explains how durable execution, exemplified by Temporal’s Workflow and Activity model, transforms long‑running Agent tasks—such as refund approvals that involve human sign‑off, external APIs, and overnight processing—into recoverable, auditable pipelines that survive crashes, restarts, and timeouts.
ActivityTemporalWorkflow
0 likes · 16 min read

The article investigates a real‑world Android navigation bug by dissecting how FLAG_ACTIVITY_NEW_TASK interacts with launch modes, task affinities and intent construction, revealing that the flag does not always behave like singleTask, that START_DELIVERED_TO_TOP may fail to deliver new intents, and offering debugging steps and practical fixes.
ActivityAndroidFLAG_ACTIVITY_NEW_TASK
0 likes · 23 min read

This article provides an in‑depth analysis of Android’s Activity launch mechanism, tracing the client‑side startActivity call through the framework layers, system_server services, AIDL interfaces, transaction handling, and the execution of lifecycle callbacks such as onCreate, onStart, and onResume, with extensive code excerpts.
AIDLActivityAndroid
0 likes · 31 min read

This article analyzes why adding the FLAG_ACTIVITY_NEW_TASK flag can prevent an Android Activity from starting, examines the underlying framework source code—including startActivityInner, getReusableTask, recycleTask, and complyActivityFlags—and provides practical solutions to resolve the launch failure.
ActivityAndroidDebugging
0 likes · 18 min read

Android routing management separates native navigation—using Activity launch modes, the ActivityManagerService task stack, intents, and the Navigation component for fragments—from hybrid navigation, where Activities host WebView, Weex/React‑Native, or Flutter pages and communicate via intents, bridges, or platform channels to achieve flexible page routing.
ActivityAndroidFragment
0 likes · 13 min read

NetEase Cloud Music’s 8.0 redesign enables seamless video playback across Activities by rebinding MediaPlayer instances to new TextureViews via AIDL, using a process‑pooled player architecture, while also offering simpler alternatives such as animated fake page switches, seek‑based reinitialization, and application‑context view reuse.
AIDLActivityAndroid
0 likes · 13 min read

This article walks through Android’s Activity.setContentView implementation, tracing how the framework creates a PhoneWindow, initializes a DecorView, selects the appropriate layout resource, inflates it, and finally attaches the view hierarchy to the activity’s content container.
ActivityAndroidLayout Inflation
0 likes · 13 min read

This article explains what an Android task is, how to manage tasks with different launch modes, how to inspect the current task stack via the device UI or adb, and provides detailed descriptions of common Intent flags and their effects on activity behavior.
ActivityAndroidIntentFlags
0 likes · 14 min read

Android activity startup latency stems from three phases—Pause, Launch, and Render—so optimizing only onCreate often leaves perceived delays; developers can measure each phase via system logs or AOP hooks (Instrumentation, Looper‑Printer, or ActivityThread handler) to pinpoint and reduce bottlenecks.
ActivityAndroidLooper
0 likes · 21 min read

This article explains several practical methods—including ADB commands, UIAutomatorViewer, source inspection, Appium, and AAPT—to obtain an Android application's package name and launch Activity, which are essential for configuring automation tools such as Appium.
ADBActivityAndroid
0 likes · 4 min read

The article explains that each Unity scene runs inside an Android Activity by embedding a UnityPlayer FrameLayout, details how UnityPlayerActivity and GoogleUnityActivity load scenes, shows how to subclass these activities for custom integration, and outlines essential steps for creating reliable Unity‑Android plugins and handling assets.
ActivityAndroidScene
0 likes · 15 min read

This article explains the fundamental role of Android Activity as the primary UI component, its interaction with layouts and context, how it saves state, handles configuration changes, switches with services, and details its complete, visible, and foreground lifecycles as well as the various process priority levels in Android.
ActivityAndroidContext
0 likes · 7 min read

To guarantee a single persistent main Activity while allowing sub‑Activities and third‑party navigation, the article proposes routing all external and internal launches through a dedicated DispatcherActivity that uses FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TOP, a static weak reference, and onNewIntent handling, avoiding singleTask/instance modes.
ActivityAndroidDispatcher
0 likes · 14 min read
