protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Mint.SetMintCallback(this); Mint.EnableDebug(); Mint.SetUserIdentifier("*****@*****.**"); // Mint.DisableNetworkMonitoring (); // Mint.AddURLToBlackList("requestb.in"); IList <string> blacklist = Mint.URLBlackList; Mint.EnableLogging(true); // Log the last 100 messages Mint.SetLogging(100); // Log all messages with priority level "warning" and higher, on all tags Mint.SetLogging("*:W"); // Log the latest 100 messages with priority level "warning" and higher, // on all tags Mint.SetLogging(100, "*:W"); // Log all messages from the ActivityManager at priority "Info" or above, // all log messages with tag "MyApp", with priority "Debug" or above: Mint.SetLogging(400, "ActivityManager:I MyApp:D *:S"); Mint.LastBreath = () => { Log.Debug(Tag, "Last Breath invoked!"); }; Mint.InitAndStartXamarinSession(Application.Context, "3520f5c9"); Mint.AddExtraData("ExtraKey1", "ExtraValue1"); Mint.ClearExtraData(); IDictionary <string, string> dictionaryMap = new Dictionary <string, string> (); dictionaryMap.Add("ExtraDictionaryKey1", "ExtraDictionaryValue1"); dictionaryMap.Add("ExtraDictionaryKey2", "ExtraDictionaryValue2"); Mint.AddExtraDataMap(dictionaryMap); IDictionary <string, string> globalExtras = Mint.ExtraData; Mint.RemoveExtraData("ExtraKey1"); Mint.LeaveBreadcrumb("MainActivity:Oncreate"); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); // Get our button from the layout resource, // and attach an event to it Button nullReferenceButton = FindViewById <Button> (Resource.Id.myButton); Button flushButton = FindViewById <Button> (Resource.Id.flushButton); Button logEventLogLevelButton = FindViewById <Button> (Resource.Id.logEventLogLevelButton); Button logEventButton = FindViewById <Button> (Resource.Id.logEventButton); Button handleExceptionNullButton = FindViewById <Button> (Resource.Id.handleExceptionNullButton); Button handleExceptionArgumentButton = FindViewById <Button> (Resource.Id.handleExceptionArgumentButton); Button startTransactionButton = FindViewById <Button> (Resource.Id.startTransactionButton); Button stopTransactionButton = FindViewById <Button> (Resource.Id.stopTransactionButton); Button cancelTransactionButton = FindViewById <Button> (Resource.Id.cancelTransactionButton); Button httpClientButton = FindViewById <Button> (Resource.Id.httpClientButton); Button modernHttpClientButton = FindViewById <Button> (Resource.Id.modernHttpClientButton); Button unobservedTaskButton = FindViewById <Button> (Resource.Id.unobservedTaskButton); nullReferenceButton.Click += NullReferenceClick; flushButton.Click += FlushClick; logEventLogLevelButton.Click += LogEventLogLevelClick; logEventButton.Click += LogEventClick; handleExceptionNullButton.Click += HandleNullReferenceClick; handleExceptionArgumentButton.Click += HandleArgumentClick; startTransactionButton.Click += TransactionStartClick; stopTransactionButton.Click += TransactionStopClick; cancelTransactionButton.Click += TransactionCancelClick; httpClientButton.Click += HttpClientRestPost; modernHttpClientButton.Click += ModernHttpClientRestPost; unobservedTaskButton.Click += TaskUnawaitedMethod; Mint.HandleUnobservedException = (Exception arg) => { return(true); }; }