android-jetpack

Installation
SKILL.md

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().

Related skills
Installs
23
GitHub Stars
5
First Seen
Mar 7, 2026