Save Data of LogCat in android -


i want save contents of log cat specific file in android. used eclipse ide develop android application.

how can achieve ?

thanks.

here way logcat contents progrmatically.

 process process = runtime.getruntime().exec("logcat -d");   bufferedreader bufferedreader = new bufferedreader(      new inputstreamreader(process.getinputstream()));   stringbuilder log=new stringbuilder();  string line = "";  while ((line = bufferedreader.readline()) != null) {      log.append(line);  } 

check this link more details.


Comments