What is the best approach to catch unexpected exceptions and log them

I have used the Debug.startMethodTracing() method to create trace
files

but the problem is if the application errors out, the
Debug.stopMethodTracing() never gets called
so the trace information is lost..

if there another way

also I have tried to capture the logcat like

 mLogcatProc = Runtime.getRuntime().exec("logcat -f /sdcard/App.log
'*:D App_TAG:V'");

the file gets created but its empty...

any ideas...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to