Skip to main content
Record real user sessions, fire analytics events, and capture crashes from your Android app with a single init call.

Install

The SDK resolves from Maven Central. Most Android projects already have google() and mavenCentral() in their repositories — if so, skip straight to the dependency. JitPack stays available as a fallback for versions published before Maven Central.
Then add the dependency to your app module:
Requires minSdk 21 or higher. No manifest changes needed.

Initialize

1

Call init from Application.onCreate

One call starts recording and wires tap capture, screen detection, crash handling, and performance monitoring.
2

Register the Application class

Point android:name at your Application subclass in AndroidManifest.xml.
3

Identify users and track events (optional)

A "picture" (alias "avatar") entry set to a public https image URL sets the user’s avatar shown on the recording header and Users list; non-URL values are ignored.

Verify

Reload the app and foreground it. Your first session appears in the Replayfy dashboard within a few seconds. Wire addVerificationListener to fire a callback after the first successful upload for an in-app “Verify integration” flow.

Configuration

Only apiKey and apiHost are required; every other option has a sensible default. Pass overrides through ReplayConfig.

API reference

All methods are exposed on the Replay singleton and are static-callable from Kotlin and Java.

Identity & events

Error monitoring

Screen tracking

Exclusion is distinct from occludeSensitiveScreen(true) — that keeps recording but blanks the frame, whereas an excluded screen captures no frames at all. Seed the list at init, or manage it at runtime:

Text input tracking

Network capture

Add the interceptor to your OkHttp client. When captureNetwork is off, it passes through with zero overhead.

Session control

Privacy & masking

All masking happens on-device before anything is uploaded. Password fields are masked automatically; everything else is opt-in.

Identify users

Attach known-user identities so anonymous sessions link retroactively.

Track events

Fire custom events that power funnels, retention, and filters.

Privacy & masking

Redact sensitive views and inputs before anything leaves the device.