Rehab Saad Rehab Saad - 1 year ago 234
Android Question

how to read '/data/anr/traces.txt' in samsung S2

I am developing an application and it keeps crashes randomly. I finally catch the logcat when it crashes.

here are the lines I got

01-30 01:04:47.281 2856-2856/com.snappext:hascode_process I/System.out﹕ Done
01-30 01:05:02.617 2856-2861/com.snappext:hascode_process I/dalvikvm﹕ threadid=3: reacting to signal 3
01-30 01:05:02.640 2856-2861/com.snappext:hascode_process I/dalvikvm﹕ Wrote stack traces to '/data/anr/traces.txt'
01-30 01:05:39.304 2750-2752/com.snappext D/dalvikvm﹕ GC_CONCURRENT freed 830K, 14% free 11618K/13383K, paused 1ms+3ms

now I need to know how to read '/data/anr/traces.txt' I am using my Samsung S2 for testing

Answer Source

you can use this cmd

adb pull /data/anr/traces.txt

you will need to navigate to adb folder under android installation

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download