I want to get the whole log (Log.d(...)), after pressing a button to analyse some parts of our app (count something...). I\'m able to do this by the following code:
This code has worked for me in the past:
Process process = new ProcessBuilder()
.command("logcat", "-c")
.redirectErrorStream(true)
.start();
This code has worked for me correctly which is put into @After case
Process process = new ProcessBuilder()
.command("logcat", "-c")
.redirectErrorStream(true)
.start();