android-jetpack
android-jetpack
Purpose
This skill provides tools for integrating Android Jetpack components to build efficient, maintainable Android apps, focusing on Room for databases, Navigation for UI flows, WorkManager for background tasks, DataStore for preferences, CameraX for camera operations, Hilt for dependency injection, and Paging 3 for data loading.
When to Use
Use this skill when building Android apps that need persistent storage (e.g., Room for SQLite), navigation between screens (e.g., Navigation Component), scheduled tasks (e.g., WorkManager), secure preferences (e.g., DataStore), camera features (e.g., CameraX), modular dependency injection (e.g., Hilt), or efficient pagination (e.g., Paging 3). Apply it in apps with complex data flows, background processing, or hardware interactions.
Key Capabilities
- Room: ORM for SQLite databases; supports entities, DAOs, and migrations.
- Navigation: Manages fragment transactions and deep links via NavController.
- WorkManager: Schedules deferrable tasks with constraints like network availability.
- DataStore: Replaces SharedPreferences with protocol buffers for typed storage.
- CameraX: Abstracts camera hardware for preview, capture, and analysis.
- Hilt: Simplifies Dagger for dependency injection with Android-specific annotations.
- Paging 3: Loads data in pages for lists, integrating with LiveData or Flow.
Usage Patterns
To use Room, add the dependency in build.gradle: implementation 'androidx.room:room-runtime:2.5.0'. Define an Entity: @Entity class User(val id: Int, val name: String). Create a DAO: interface UserDao { @Query("SELECT * FROM user") fun getAll(): List<User> }. Set up the database: Room.databaseBuilder(context, AppDatabase::class.java, "database-name").build().
More from alphaonedev/openclaw-graph
playwright-scraper
Playwright web scraping: dynamic content, auth flows, pagination, data extraction, screenshots
1.4Kgcp-iam
Manages identity and access control for Google Cloud resources using IAM policies and roles.
370humanize-ai-text
AI text humanization: reduce AI-detection patterns, natural phrasing, tone adjustment
260macos-automation
AppleScript, JXA, Shortcuts, Automator, osascript, System Events, accessibility API
173tavily-web-search
Tavily: web search optimized for AI agents, answer synthesis, domain filtering, depth control
154clawflows
OpenClaw workflow automation: multi-step task chains, conditional logic, triggers, schedule
102