# Android Amplitude Sdk Expert

> Expert guide for Amplitude Android SDK integration (Kotlin/Java). Use when tracking events, configuring autocapture, managing user identity, configuring batching or EU residency, implementing custom Enrichment/Destination plugins, migrating from legacy com.amplitude:android-sdk to modern com.amplitude:analytics-android, setting up Session Replay (plugin/middleware/standalone), configuring privacy…

- **Type:** Skill
- **Install:** `agentstack add skill-josephsanjaya-skills-android-amplitude-sdk-expert`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [JosephSanjaya](https://agentstack.voostack.com/s/josephsanjaya)
- **Installs:** 0
- **Category:** [Data & Analytics](https://agentstack.voostack.com/c/data-and-analytics)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [JosephSanjaya](https://github.com/JosephSanjaya)
- **Source:** https://github.com/JosephSanjaya/skills/tree/main/android-amplitude-sdk-expert

## Install

```sh
agentstack add skill-josephsanjaya-skills-android-amplitude-sdk-expert
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Android Amplitude SDK Expert

Configure, optimize, and migrate Amplitude SDK in Android applications.

Initialize modern Kotlin SDK once in Application class, configure autocapture options, use Enrichment plugins for scrubbing/sampling, set EU zone for compliance, migrate legacy SQLite data safely, and wire Session Replay via Plugin (modern SDK), Middleware (legacy SDK), or Standalone (third-party analytics).

## 1. Quick Decision Tree
- **API Reference (Track, Identify, Revenue, Configs)** → [references/api_reference.md](references/api_reference.md)
- **SDK Migration & Identity (Legacy to Modern, Session Management)** → [references/migration_and_identity.md](references/migration_and_identity.md)
- **Scenarios**:
  - *New Android setup* → Use Kotlin SDK initialization ([assets/AmplitudeInitializer.kt](assets/AmplitudeInitializer.kt))
  - *PII Scrubbing / Event Sampling / Event Filters* → Use custom Enrichment Plugin ([assets/CustomEnrichmentPlugin.kt](assets/CustomEnrichmentPlugin.kt))
  - *Session Replay (any variant)* → [references/api_reference.md § 5](references/api_reference.md) — Plugin (5a) / Middleware (5b) / Standalone (5c) / Privacy (5 Privacy)
  - *Legacy code scan* → Run validation script (`scripts/validate_amplitude.py`)

## 2. Fast Command Tools
Scan codebase for legacy calls, blocking code, short IDs, or incorrect properties:
```bash
python3 scripts/validate_amplitude.py 
```

## 3. Clean Code Reference Implementations
- **Idiomatic SDK Initializer**: [AmplitudeInitializer.kt](assets/AmplitudeInitializer.kt)
- **PII / Filter Plugin**: [CustomEnrichmentPlugin.kt](assets/CustomEnrichmentPlugin.kt)

Use com.amplitude:analytics-android for new apps. Direct-boot services must not initialize SDK. All calls are main-thread safe. ID values (user/device) must be >= 5 chars unless minIdLength set. Format output using clear, concise markdown hierarchy.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [JosephSanjaya](https://github.com/JosephSanjaya)
- **Source:** [JosephSanjaya/skills](https://github.com/JosephSanjaya/skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-josephsanjaya-skills-android-amplitude-sdk-expert
- Seller: https://agentstack.voostack.com/s/josephsanjaya
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
