within my application I want to save the log to a file internally. I have used this : How to redirect my log output from logcat to the SD-Card on an android device?
and I do get a log file but the problem is that the log contains only logs that are related to my application , without logs from the entire device. meaning , the log file is relatively small...
my method is running from onDestroy and contains simply the following:
public static void WriteLog() throws IOException {
String[] cmd = new String[] { "logcat","-d" , "-f", "/sdcard/Folder/LAUCHER_LOG.log", "-v", "threadtime"};
Runtime.getRuntime().exec(cmd);
}