Tag

ContentProvider

1 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Jul 19, 2023 · Mobile Development

Understanding Android ActivityThread: Initialization, ContentProvider, Rendering, and ANR Causes

This article explores Android's ActivityThread class, detailing its role as the bridge between system and app processes, the initialization flow via main(), the use of ContentProvider for SDK startup, activity rendering triggers, and how SharedPreferences can cause ANR through QueuedWork.waitToFinish().

ANRActivityThreadAndroid
0 likes · 8 min read
Understanding Android ActivityThread: Initialization, ContentProvider, Rendering, and ANR Causes
HomeTech
HomeTech
Mar 8, 2022 · Mobile Development

Best Practices for Secure Android Component Development

This article explains how to securely use Android components during development by identifying risk points, recommending proper use of the android:exported attribute, custom permissions, intent validation, and safe BroadcastReceiver and ContentProvider practices to enhance app reliability and security.

AndroidBroadcastReceiverComponent Security
0 likes · 7 min read
Best Practices for Secure Android Component Development
360 Quality & Efficiency
360 Quality & Efficiency
Aug 20, 2021 · Mobile Development

Using ContentProvider for Cross‑Process Communication with UIAutomator 1.0 on Android

This article explains how to keep UIAutomator 1.0 test cases running on Android 11+ by implementing a server‑side ContentProvider, accessing it via reflection from the UIAutomator or shell process, and demonstrates the complete Java code for provider creation and invocation.

AndroidContentProviderCross-Process
0 likes · 10 min read
Using ContentProvider for Cross‑Process Communication with UIAutomator 1.0 on Android
Tencent Music Tech Team
Tencent Music Tech Team
Aug 25, 2017 · Mobile Development

Why Android ContentProvider Client Processes May Be Killed by AMS: Deep Dive into StableCount and Process Cleanup

When a client app acquires a stable ContentProvider reference, Android’s ActivityManagerService tracks it with a stableCount; if the provider’s server process dies—due to low‑memory kill, startup failure, or timeout—while stableCount remains above zero, AMS will terminate the dependent client process.

AMSAndroidContentProvider
0 likes · 18 min read
Why Android ContentProvider Client Processes May Be Killed by AMS: Deep Dive into StableCount and Process Cleanup