I had found some crashes while running the application in android device, which is not showing in emulator. So i need to save the Logcat in a text file in my device\'s memor
Use -f option with logcat in your class:
Runtime.getRuntime().exec("logcat -f" + " /sdcard/Logcat.txt");
This will dump the logs to the file stored device.
Note that the path "/sdcard/" may not be available in all devices. You should use the standard APIs to access the external storage.