[mono-android] How to obtain crash data from android application

PedroC gbelo at iol.pt
Mon Jun 25 14:02:45 UTC 2012


Hello
I'm trying to implement 'UncaughtExceptionHandler' for Monodroid as seen in
the following link:

http://stackoverflow.com/questions/601503/how-do-i-obtain-crash-data-from-my-android-application

but with no success.
I have tried to code as you see next but with no success and can't find
anyware an implementation for 'IUncaughtExceptionHandler'.
I hope someone can direct me in the right way to do it.


public interface CMUncaughtExceptionHandler :
Java.Lang.Thread.IUncaughtExceptionHandler, Android.Runtime.IJavaObject,
IDisposable
{
	string outfile = "";

	public CMUncaughtExceptionHandler(string file)
        {
		outfile = file;
        }

        void UncaughtException(Java.Lang.Thread t, Java.Lang.Throwable e)
        {
	    //Send 'e.printStackTrace' to outfile            

        }
}

Java.Lang.Thread.DefaultUncaughtExceptionHandler = new
CMUncaughtExceptionHandler();


Thanks for any help
P.


--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/How-to-obtain-crash-data-from-android-application-tp5710512.html
Sent from the Mono for Android mailing list archive at Nabble.com.


More information about the Monodroid mailing list