Launching with options

Bugsee behavior is very customizable, if default configuration is not satisfying your needs you can launch the SDK with additional parameters passed as a dictionary.

public class MyApplication extends Application {
    public void onCreate() {
        HashMap<String, Object> options = new HashMap<>();
        options.put(Bugsee.Option.MaxRecordingTime, 60);
        options.put(Bugsee.Option.ShakeToTrigger, false);
        Bugsee.launch(this, "<your_app_token>", options);

Available Options

Key Default value Notes
MaxRecordingTime 60 Maximum recording duration (in seconds)
ShakeToTrigger true Shake gesture to trigger report
NotificationBarTrigger true Trigger report from notification bar
CrashReport true Catch and report application crashes
UseSdCard true By default Bugsee saves its data to SD card (if ServiceMode option is not enabled). When set to false, internal app storage will be used. If your app does not require external storage, you might want to disable it in production builds. (*)
VideoEnabled true Record video. If false, created issues will contain console logs, events and traces, but will not contain video.
ExtendedVideoMode true If true, MediaProjection API is used, while recording video. In this case all types of views are recorded, but user is asked to allow video recording. If false (experimental), view drawing cache is used to capture the screen. In this case user is not asked to allow video recording, but frame rate is lower and some special views like status bar, soft keyboard and views, which contain Surface (MapView, VideoView, GlSurfaceView, etc.) are not recorded. Option has no effect, if VideoEnabled option is set to false.
MonitorNetwork true Monitor network events
ServiceMode false Should be used, when Bugsee is launched from service. If true, video is not recorded and recording is not stopped, when app goes to background; ShakeToTrigger and NotificationBarTrigger options are set to false automatically.
LogLevel BugseeLogLevel.Verbose Minimal log level of Logcat messages, which will be attached to reports. Option has value of BugseeLogLevel type.

Setting reporters email

When you already have your users identified within your app, you might want to add their email automatically attached to the bug report. Bugsee provides API's for setting, getting and clearing the email.

// setting email

// getting email, null will be returned if email was not set.
String email = Bugsee.getEmail();

// clearing email