1

As far as I know, I can't filter application name from cmd, so I have to use the tags instead...

I can filter properly, but I can't get the ouput format I want...

I'm trying the following and everything works fine...

Runtime.getRuntime().exec(new String[] { "logcat", "-d",
    BasicDefinitions.APP_TAG + ":I *:S" });

if I change -d to -d -v long it doesn't work anymore... the -v parameter is a valid one as stated here http://developer.android.com/tools/debugging/debugging-log.html#outputFormat

prom85
  • 16,896
  • 17
  • 122
  • 242

1 Answers1

0

Since you are using String[] type for the parameters you can not combine any of them:

Runtime.getRuntime().exec(new String[] { "logcat", "-d", "-v", "long", BasicDefinitions.APP_TAG + ":I", "*:S" });
Alex P.
  • 30,437
  • 17
  • 118
  • 169