I am really puzzled by bahaviour of my app. When I have my mobile connected to eclipse and my service is reading every line of logcat in order to looking for substring - everything is OK. Immediately when I disconnect my mobile from PC, "logcat reading code" doesn't work.
Process process = Runtime.getRuntime().exec("logcat -d");
Runtime.getRuntime().exec("logcat -c");
BufferedReader bufferedReader = new BufferedReader(
new InputStreamReader(process.getInputStream()));
while ((line = bufferedReader.readLine()) != null) {
if (line.indexOf("some string") > 0)...
I download some logcat apps and they are able to show exactly the same logCat lines as ... eclipse. Can you help me please?