Stream android logcat output to an sd card
I want to achieve the following but so far, no luck Open a file in the SD Card when the android application first started. Stream the logcat output to the file. When the application exits, stop the logcat streaming. In my ApplicationClass extends Application onCreate() method, I do this wwLogManager.openLogFile(); and here's the code in the openLogFile() private static final String LOGCAT_COMMAND = "logcat -v time -f "; String timestamp = Long.toString(System.currentTimeMillis()); String logFileName = BuildConstants.LOG_LOCATION + "_" + timestamp + ".log"; mLogFile = new File(Environment