0

I have 2 activities, activity A and activity B. In both activities I have registered the crash manager like this:

CrashManager.Register(this, MyID, new CustomCrashManagerListener());

Where in CustomCrashManager I have override the get Description method to be different in activity A from activity B.

My question is: If an exception happened in Activity B, I always get the activity A Description, how I can get the activity B Description?

Thank you.

Hadi Al Tinawi
  • 429
  • 7
  • 22
  • I saw your question is answered in [HA forum](https://support.hockeyapp.net/discussions/problems/72068-crashmanagerlistener-description-for-android-os), maybe you can have a check there. – Grace Feng Apr 05 '17 at 01:17

1 Answers1

0

Here how I did it:

I did this once in my first activity, I created crash manager listener class

private class AppCrashManagerListener : CrashManagerListener
        {

            public override string Description
            {
                get { return MyCustomDescription(); }
            }
        }

Then in OnCreate method:

CrashManager.Register(this, HockeyAppId.AndroidId, new AppCrashManagerListener());
Hadi Al Tinawi
  • 429
  • 7
  • 22