Android SDK
Capture screenshots and submit feedback from your Android app.
Quickstart
Get your first feedback submission in under 5 minutes.
Install the SDK
Add the SDK dependency to your module-level build file.
implementation("com.mcpfeedback:mcpfeedback:1.0.0")Initialize in your app
Initialize the SDK in your Application class.
import com.mcpfeedback.MCPFeedback
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
MCPFeedback.init(
this,
apiKey = "YOUR_API_KEY",
siteKey = "YOUR_SITE_KEY"
)
}
}Launch the feedback UI
Call show() to open the feedback form, or let users shake to report.
MCPFeedback.show(this)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
| Parameter | Type | Default | Description |
|---|---|---|---|
| context | Context | required | Application context |
| apiKey | String | required | Your MCPFeedback API key |
| siteKey | String | required | Your site identifier |
| shakeEnabled | Boolean | true | Enable shake-to-report gesture |
| baseUrl | String? | null | Custom 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.