Debug.startMethodTracing("x");
The Debug.StartMethodTracing() will write to the sdcard, which
requires the following permission in the AndroidManifest.xml:
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
On Dec 1 2009, 7:49 am, kaloer <[email protected]> wrote:
> Hi!
>
> A user of my application have a problem with the application.
> Sometimes it forces close. It does not force close on my device so I
> can't debug it. However, I have tried using the
> Debug.startMethodTracing(); method to save the stack trace to a file.
> I call this method in the OnCreate() method, at calls the
> Debug.stopMethodTracing(); method in the onDestroy() method.
>
> But the saved file is empty when I try generating an exception as a
> test (int i = Integer.parse("hello"); .) When I stop the application
> without getting an exception it does save the file with contents.
>
> Why is the file empty?
>
> Thank you very much!
>
> //Kaloer
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en