作为标题,我可以得到 orhter log ex。Runtime.getRuntime().exec("logcat -d|); 试试 {
Log.e("test", "1");
Process proc = Runtime.getRuntime().exec(
"logcat -b radio -v time -s GSM");
Log.e("test", "2");
BufferedReader reader = new BufferedReader(
new InputStreamReader(proc.getInputStream()));
Log.e("test", "3");
String line;
ArrayList list = new ArrayList();
if (reader.readLine() != null) {
for (int i = 0; i < 50; i++) {
line = reader.readLine();
list.add(line);
}
}
Log.e("test", "4");
for (int i = 0; i < list.size(); i++) {
Log.e("a123456", list.get(i).toString());
}
} catch (Exception t) {
Log.e("test", "5");
Log.e("test", t.getMessage());
}test log 1 2 3can be print . but can't get any Exception log.I think it must be block
为什么?ps:我用的是索尼手机果冻豆eng