android-performance

Identify and fix Android app performance bottlenecks using Android Studio Profiler and Macrobenchmark.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/HuxleyMc/Android-Skills --skill android-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-performance
Source: https://github.com/HuxleyMc/Android-Skills/tree/main/android-performance
Command: npx skills add https://github.com/HuxleyMc/Android-Skills --skill android-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Android performance skill helps engineers quickly identify and fix performance bottlenecks in Android apps, reducing jank, memory leaks, ANR incidents, and battery drain through guided profiling and best practices.

Core Features & Use Cases

  • Profiling guidance with Android Studio Profiler (CPU, Memory) and Macrobenchmark techniques to measure startup and rendering performance.
  • Memory management and leak-prevention patterns, including bitmap optimization and lifecycle-aware caching.
  • Rendering and layout optimizations to reduce overdraw and improve frame rates, along with RecyclerView and view hierarchy best practices.
  • Practical use cases: diagnose laggy UIs, fix memory leaks, tame ANRs, speed up startup, and improve battery life in production builds.

Quick Start

Review this skill's guidance and enable profiling in Android Studio to begin capturing CPU and memory traces; run a macrobenchmark or a simple startup test, then apply the recommended optimizations in your codebase.

Frequently Asked Questions about android-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix jank and reduce dropped frames in my Android app?

Reduce Android UI jank by applying rendering optimizations with Android Studio Profiler to analyze overdraw, flatten view hierarchies, and improve RecyclerView frame rates for smoother scrolling.

What's the best way to profile Android memory leaks and optimize bitmap usage?

Profile Android memory leaks using the Memory Profiler to trace allocations, then apply lifecycle-aware caching and bitmap optimization patterns to prevent leaks and reduce memory overhead.

How do I speed up Android app startup time using Macrobenchmark?

Speed up Android startup by running Macrobenchmark tests to measure baseline performance, then apply guided profiling techniques to identify and remove bottlenecks in your initialization code.

Why does my Android app experience ANR incidents and how can I prevent them?

Android ANR incidents occur when the main thread is blocked; diagnose them using CPU traces from Android Studio Profiler and apply best practices to move heavy operations to background threads.

Can I use this performance optimization workflow for Kotlin and Java Android APIs?

Yes, the workflow supports optimizing performance for both Kotlin and Java Android APIs by leveraging Android Studio Profiler and Macrobenchmark to implement improvements across your codebase.

How do I reduce Android battery drain in production builds?

Reduce Android battery drain by profiling your app to identify excessive background work and wake locks, then applying performance best practices to optimize resource usage in production builds.