コード例 #1
0
        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"); };
        }
コード例 #2
0
    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);
    }
コード例 #3
0
    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);
    }