Android SDK

Capture screenshots and submit feedback from your Android app.

Quickstart

Get your first feedback submission in under 5 minutes.

1

Install the SDK

Add the SDK dependency to your module-level build file.

build.gradle.kts
implementation("com.mcpfeedback:mcpfeedback:1.0.0")
2

Initialize in your app

Initialize the SDK in your Application class.

MyApplication.kt
import com.mcpfeedback.MCPFeedback

class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        MCPFeedback.init(
            this,
            apiKey = "YOUR_API_KEY",
            siteKey = "YOUR_SITE_KEY"
        )
    }
}
3

Launch the feedback UI

Call show() to open the feedback form, or let users shake to report.

MCPFeedback.show(this)
4

Verify it works

Submit a test feedback item and check your MCPFeedback dashboard. It should appear within seconds.

The SDK also supports shake-to-report. Users can shake their device to open the feedback form.

Find your API key in Dashboard > Settings > API Keys

Configuration

ParameterTypeDefaultDescription
contextContextrequiredApplication context
apiKeyStringrequiredYour MCPFeedback API key
siteKeyStringrequiredYour site identifier
shakeEnabledBooleantrueEnable shake-to-report gesture
baseUrlString?nullCustom API base URL (defaults to production)

API Reference

MCPFeedback.init(...)

Initialize the SDK with application context, API key, and site key. Must be called in your Application class before any other SDK methods.

MCPFeedback.show(activity)

Opens the feedback capture flow from the given Activity. Takes a screenshot of the current screen and presents the feedback form.

MCPFeedback.destroy()

Clean up SDK resources. Call when feedback functionality is no longer needed or during app shutdown.