I want to dump Android logcat in a file whenever user wants to collect logs. Through adb tools we can redirect logs to a file using adb logcat -f filename, but how can I do this programmatically?
I want to dump Android logcat in a file whenever user wants to collect
Share
Here is an example of reading the logs.
You could change this to write to a file instead of to a
TextView.Need permission in
AndroidManifest:Code: