ワンクリックで
android-offline-first
Use when implementing local data persistence, offline synchronization, or background data fetching for Android.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when implementing local data persistence, offline synchronization, or background data fetching for Android.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Handling Bluetooth Low Energy, flow wrappers, and Android 12+ permissions.
Seamless integration of CameraX with Google ML Kit for vision tasks.
Deep-dive skills for banking and healthcare apps.
Use when integrating Google Gemini Nano via AICore for on-device ML.
Automated UIAutomator tests and Hardware mocking setup.
Expanding KMP shared UI to cover Compose Multiplatform edge-cases.
| name | android-offline-first |
| description | Use when implementing local data persistence, offline synchronization, or background data fetching for Android. |
| category | architecture |
| risk | low |
| source | community |
| date_added | 2026-03-31 |
| metadata | {"triggers":["@offline-first","room-database","work-manager","offline-sync","local-first"]} |
Standard patterns for architecting professional-grade Android applications that are resilient to poor network conditions and function seamlessly offline.
class MyRepository(
private val localSource: RoomDao,
private val remoteSource: APIInterface
) {
fun getItems(): Flow<List<Item>> = localSource.observeAll()
suspend fun refreshItems() {
val items = remoteSource.fetchItems()
localSource.insertAll(items) // UI updates automatically via Flow
}
}
RemoteMediator. The RemoteMediator intercepts the pagination request, fetches the remote page, dumps it into Room, and signals the PagingSource to re-read from the DB.NetworkType.CONNECTED, RequiresCharging(true).Preferences DataStore or Proto DataStore (Type-safe).timestamp to local entries to decide when to refresh from the network.onConflict = OnConflictStrategy.REPLACE or custom logic based on "last modified" fields.androidTest.WorkManagerTestInitHelper for unit testing workers.