I have one application installed in my LG Optimus 2X , sometimes it get crashed but I don't know what's the reasion for the crash. I want LogCat to be shown in my computer when I connect my device to my computer. Can you, please, tell me how to do this?
-
what do you use for developing? eclipse? – Th0rndike Apr 02 '12 at 12:03
-
use [ACRA](http://code.google.com/p/acra/) for getting crash reports of appliction – ρяσѕρєя K Apr 02 '12 at 12:09
-
I have used App [alogcate](https://play.google.com/store/apps/details?id=org.jtb.alogcat&feature=search_result#?t=W251bGwsMSwxLDEsIm9yZy5qdGIuYWxvZ2NhdCJd) for the same. – MKJParekh Apr 02 '12 at 12:17
4 Answers
While your device is connected, just use "adb logcat" command (adb command is inside android-sdk-mac_x86/platform-tools folder) and then start the app.

- 447
- 5
- 11
You can a.) install the free app "Android System Info". With that app you can save the device LogCat to your SD card or b.) install the Android SDK and use the ADB to fetch the LogCat from the device.

- 6,656
- 11
- 67
- 85
You can read log programmatically.
If you wish you can read them and store them as a textfile or in a database that you can read later when get connected.
Code to read Logs dont forget to add permission of android.permission.READ_LOGS
But still I believe the Comment I have made is more easier way.

- 34,073
- 11
- 87
- 98
You can use Eclipse IDE for example with ADT plugin installed you will have a perspective called DDMS which will show you your device and can show the logCat for that device

- 10,015
- 8
- 46
- 63