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/Implementing-UncaughtExceptionHandler-tp5710520.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to