Issue
So i am trying to trouble shoot an issue with an andriod app, however when the issue happens we are not at a pc. When we get to a pc, the logs are already over written. My question is if there is any way to run ADB from the device itself and have it log to an SD card or another location on the device.
This way all logs will be captured when the issue occurs. Perhaps there is a way to access the android terminal on the device and enable to the logging form there?
Thanks
Andrew
Solution
Yes there is you can use adb shell
and in the shell type logcat>/sdcard/log.txt
another way is you can do it via a terminal emulator app from play store, or you can do it programically in an app by executing it with the exec command just use "logcat>/sdcard/log.txt"
you can find more documentation about logcat here
Answered By - insomniac
Answer Checked By - Gilberto Lyons (JavaFixing Admin)