원클릭으로
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.