protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // 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 button = FindViewById <Button>(Resource.Id.myButton); button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); }; Button helloBugfenderButton = FindViewById <Button>(Resource.Id.helloBugfenderButton); helloBugfenderButton.Click += delegate { Bugfender.D("hello_tag", "Hello world!"); }; Button sendFeedbackButton = FindViewById <Button>(Resource.Id.sendFeedbackButton); sendFeedbackButton.Click += delegate { var intent = Bugfender.GetUserFeedbackActivityIntent(this, "Feedback Title", "Instructions", "Subject", "Message", "Send"); this.StartActivityForResult(intent, Com.Bugfender.Sdk.Internal.UI.FeedbackActivity.RequestCode); }; Button crashButton = FindViewById <Button>(Resource.Id.crashButton); crashButton.Click += delegate { throw new Exception("test"); }; }
public override void OnCreate() { base.OnCreate(); Bugfender.Init(this.ApplicationContext, "szdGvhnVUsBYAAb8bdtnqOiWJxR4a23H", true); Bugfender.EnableUIEventLogging(this); Bugfender.EnableLogcatLogging(); Bugfender.D("TAG", "Hello, testing!"); Bugfender.W("TAG", "Hello, warning!"); Bugfender.E("TAG", Bugfender.DeviceIdentifier); }
public override void OnCreate() { base.OnCreate(); Bugfender.Init(this.ApplicationContext, "jv7uuCzhmOWoma4x5NxoSb6EfJt7vX4Z", true); Bugfender.EnableUIEventLogging(this); Bugfender.EnableLogcatLogging(); Bugfender.EnableXamarinCrashReporting(); Bugfender.D("TAG", "Hello, testing!"); Bugfender.W("TAG", "Hello, warning!"); Bugfender.E("TAG", Bugfender.DeviceIdentifier); }