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.
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());