Android: leia o logcat programaticamente

É assim que você pode ler o logcat: Process logcat;final StringBuilder log = new StringBuilder();try {logcat = Runtime.getRuntime().exec(new String[]{“logcat”, “-d”});BufferedReader br = new BufferedReader(new InputStreamReader(logcat.getInputStream()),4*1024);String line;String separator = System.getProperty(“line.separator”); while …

Continuar lendo