Ответ 1
Попробуйте что-то вроде этого:
try {
Runtime rt = Runtime.getRuntime();
//here you can add your params
String[] commands = {"logcat"};
Process proc = rt.exec(commands);
BufferedReader stdInput = new BufferedReader(new
InputStreamReader(proc.getInputStream()));
BufferedReader stdError = new BufferedReader(new
InputStreamReader(proc.getErrorStream()));
String s;
while ((s = stdInput.readLine()) != null) {
//here is your logcat
Log.i("logcat", s);
}
while ((s = stdError.readLine()) != null) {
Log.e("logcat", s);
}
} catch (IOException e) {
e.printStackTrace();
}
Имейте в виду, что вам может понадобиться root для чтения logcat.
UPD: Рабочий пример - https://github.com/sssemil/SampleLogcatApp