Appspotdemo.Mono.Droid.UnhandledExceptionHandler.Run C# (CSharp) Method

Run() public method

public Run ( ) : void
return void
        public void Run()
        {
            string title = "Fatal error: " + getTopLevelCauseMessage(e);
            string msg = getRecursiveStackTrace(e);
            TextView errorView = new TextView(activity);
            errorView.Text = msg;
            errorView.SetTextSize(ComplexUnitType.Sp, 8);
            ScrollView scrollingContainer = new ScrollView(activity);
            scrollingContainer.AddView(errorView);
            Log.Error(TAG, title + "\n\n" + msg);
            AlertDialog.Builder builder = new AlertDialog.Builder(activity);
            builder.SetTitle(title).SetView(scrollingContainer).SetPositiveButton("Exit", OnClick).Show();
        }