HomeDocsAndroidConfiguration

Configuration

v1.9.0

Configure the SDK with the options available on your platform.

Set these options on BugScreenConfig.Builder:

OptionDefaultDescription
apiKey(String)RequiredYour API key from the BugScreen console
screenshotDetection(Boolean)trueAuto-detect screenshots and show report UI
shakeDetection(Boolean)falseOpen the reporter on a deliberate foreground shake with a best-effort app screenshot.
debug(Boolean)falseEnable SDK diagnostic logging.
requestPermissionsOnStart(Boolean)falseAuto-request the runtime permission needed for screenshot detection on Android 13 and below, on the first resumed Activity. No-op on Android 14+ or if already granted.
captureSystemLogs(Boolean)falseAttach current-process system logs as a separate file.
showReportNotification(...)OffShow a silent foreground notification. Optional show and requestPermission default to true. Set show = false to disable it, or requestPermission = false to handle authorization yourself.
showFloatingButton() / showFloatingButton(Boolean)falseShows the floating button at startup when enabled. Floating button guide
startScreenRecordingImmediately(Boolean)falseStart recording after system permission. The no-op artifact never records.
screenRecordingOptions(ScreenRecordingOptions)30 seconds, BALANCEDSet duration and LOW, BALANCED or HIGH quality. Screen recording

Choose each app’s reporter wording, Type choices and Severity visibility in the Console’s Reporter tab.

Customise the reporter

For system-log setup, privacy and limits, see Logging.

Shake to report

Report from a notification