解决Android日志输出过长的问题
有时候Logcat日志过长,为了方便查看,我们可以把它存储到text文档。
String str = "hello world";try {FileWriter fw = new FileWriter(PATH + "/aa.txt");fw.flush();fw.write(str);fw.close();} catch (Exception e) {e.printStackTrace();}