How can i read filtered log cat whereLevel
is Warning?
That's all i know....
logcat = Runtime.getRuntime().exec(new String[]{"logcat", "-d"});
br = new BufferedReader(new InputStreamReader(logcat.getInputStream()),4*1024);
String line;
final StringBuilder log = new StringBuilder();
String separator = System.getProperty("line.separator");
while ((line = br.readLine()) != null)
{
log.append(line);
log.append(separator);
}
The -s flag lets you filter logcat output based on tag and level e,w,d,v so you can try modifying your line.
Hope u get what u want....