g1joshi/agent-skills/android-sdk
Claude Code and agent skill by g1joshi/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Expert Android SDK assistance covering Android architecture components, Activity/Fragment lifecycles, permissions, background work with WorkManager, and Gradle build optimizations. Use when building native Android applications, configuring ProGuard/R8, or interacting with platform SDK APIs.
Install
npx vskill@latest install g1joshi/agent-skills/android-sdkSKILL.md
The same SKILL.md was published earlier as g1joshi/agent-skills/android-sdk.
Android SDK
The traditional Android development toolkit (Views, Activities, Fragments, XML) using Kotlin/Java. Essential for maintaining the vast ecosystem of pre-Compose applications.
When to Use
- Native Android Development: Building high-performance, platform-specific Android applications using Java or Kotlin.
- Hardware & Sensor Access: Interfacing with Bluetooth Low Energy, camera hardware, biometric sensors, and NFC directly.
- Background Task Scheduling: Managing deferred, periodic, or guaranteed background jobs using WorkManager and foreground services.
- Deep System Integration: Implementing custom launcher widgets, notification channels, accessibility services, and device admin policies.
Quick Start
Core Concepts
Activity & Fragment Lifecycles
Activities represent single screens with user interfaces; lifecycle callbacks manage resource acquisition and release to prevent memory leaks during configuration changes:
Dependency Injection with Hilt
Hilt standardizes Dagger dependency injection across Android components with predefined scopes tied to Android lifecycles:
Permissions Architecture & Runtime Requests
Modern Android requires fine-grained runtime permission requests before accessing sensitive hardware or user records:
Common Patterns
Background Processing with WorkManager
Problem: Long-running background sync operations get terminated by modern Android battery optimization (Doze mode). Solution: Schedule persistent background jobs with WorkManager and constraints.
Best Practices
Do:
- Adopt Edge-to-Edge Display: Target Android 15+ edge-to-edge system bars using WindowInsetsCompat.
- Use WorkManager for Background Tasks: Never spawn unmanaged background threads that get killed by battery optimizations (Doze).
- Enforce ViewBinding / Compose: Eliminate error-prone
findViewByIdlookups by using ViewBinding or modern Jetpack Compose. - Validate Scoped Storage: Store application files in private app storage (
context.filesDir) or use the Storage Access Framework for public files.
Don't:
- Block the Main (UI) Thread: Keep networking, JSON parsing, and database transactions strictly on IO coroutine dispatchers.
- Hardcode dimensions or text: Always use
res/values/strings.xmlfor localization andres/values/dimens.xmlor density-independent pixels (dp). - Hold static references to Context: Retaining an Activity context in static singletons causes permanent memory leaks.
Troubleshooting
| Error | Cause | Solution | |
|---|---|---|---|
ANR (App Not Responding) | Blocking main thread for >5s. | Move work to Dispatchers.IO (Coroutines). | |
IllegalStateException: Fragment not attached | Accessing context after detachment. | Check isAdded or use MainScope safely. | |
Memory Leak | Holding Activity reference in Singleton/Background. | Use WeakReference or Application Context. |
References
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mobile/android-sdk/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/g1joshi/agent-skills/android-sdk)