Tag

Android

1 views collected around this technical thread.

Tencent Music Tech Team
Tencent Music Tech Team
Aug 11, 2016 · Mobile Development

Android Content Provider: Fundamentals, Implementation, and Usage

Android Content Providers are a core component that expose a uniform, permission‑controlled CRUD interface via content:// URIs, require manifest declaration, load lazily, support custom implementations, multi‑process instances, shared‑memory cursor transfers, observer notifications, and handle large‑data limits through batching.

AndroidContent ProviderData Sharing
0 likes · 26 min read
Android Content Provider: Fundamentals, Implementation, and Usage
Tencent Music Tech Team
Tencent Music Tech Team
Jul 14, 2016 · Mobile Development

Implementing a Custom Lock Screen on Android: Services, Broadcasts, UI Flags, Immersive Mode, and Fingerprint Unlock

Developers can create a custom Android lock screen by starting a foreground service that registers a dynamic SCREEN_OFF broadcast, launching a lock‑screen activity with keyguard‑dismiss and immersive window flags, handling swipe‑to‑unlock gestures, making navigation bars transparent, and integrating fingerprint authentication while respecting system security constraints.

AndroidBroadcastReceiverCustom Lock Screen
0 likes · 20 min read
Implementing a Custom Lock Screen on Android: Services, Broadcasts, UI Flags, Immersive Mode, and Fingerprint Unlock
Tencent Music Tech Team
Tencent Music Tech Team
Jun 6, 2016 · Mobile Development

Incremental Update Solution for Android APKs Using Binary Diff and Channel Management

The article presents an Android incremental‑update solution that uses bsdiff‑generated binary patches to replace full APK downloads, embeds channel identifiers in the ZIP comment field to avoid per‑channel APK duplication, and details server‑side patch creation, client‑side channel stripping, patch merging, and verification to reduce bandwidth and simplify multi‑channel distribution.

APK PatchAndroidChannel Management
0 likes · 18 min read
Incremental Update Solution for Android APKs Using Binary Diff and Channel Management
Tencent Music Tech Team
Tencent Music Tech Team
Jun 2, 2016 · Mobile Development

Ensuring a Single Instance of the Main Activity in Android Using a Dispatcher Activity

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
Ensuring a Single Instance of the Main Activity in Android Using a Dispatcher Activity