feature-flags-android

Configure PostHog feature flags in Android apps via the Android SDK.

58|5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/PostHog/skills --skill feature-flags-android
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-flags-android
Source: https://github.com/PostHog/skills/tree/main/skills/posthog/feature-flags/skills/android
Command: npx skills add https://github.com/PostHog/skills --skill feature-flags-android

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enable PostHog feature flags in Android applications to control feature rollout and experimentation directly in Android apps.

Core Features & Use Cases

  • Install and configure the PostHog Android SDK in an Android project.
  • Manage and evaluate boolean and multivariate feature flags with guidance and best practices.
  • Use cases include enabling phased rollouts, A/B testing, and feature-driven UI changes across activities and lifecycles.

Quick Start

Add the PostHog Android SDK to your project and initialize PostHog in the Application class onCreate.

Frequently Asked Questions about feature-flags-android

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

FAQPage Schema
How do I set up PostHog feature flags in an Android app?

To set up PostHog feature flags in an Android app, add the PostHog Android SDK to your project and initialize the configuration inside the Application class onCreate method.

How do I evaluate boolean and multivariate feature flags across Android activities?

Evaluate boolean and multivariate feature flags by using the PostHog Android SDK to fetch flag states, enabling feature-driven UI changes and experimentation across the Android app lifecycle.

What are the best practices for managing feature rollouts on Android?

Best practices for Android feature rollouts include using environment variables, initializing PostHog in Application.onCreate, and relying on server-side evaluation for flag states.

Can I use PostHog feature flags for A/B testing in Android applications?

Yes, you can use PostHog feature flags for A/B testing in Android applications to control phased rollouts and manage feature-driven UI changes across activities.

Does the PostHog Android SDK require initialization in Application.onCreate?

Yes, following Android framework guidelines, you must initialize the PostHog Android SDK inside the Application.onCreate method to properly evaluate feature flags across the app lifecycle.

What is server-side evaluation for Android feature flags?

Server-side evaluation for Android feature flags is a best-practice approach where flag states are resolved server-side via the PostHog SDK, ensuring consistent phased rollouts and experimentation.