Android程序崩溃统一处理机制(二)

2015-07-16 12:55:30 · 作者: · 浏览: 20
w File(dir, fileName);


? ? FileOutputStream fos = new FileOutputStream(file);
? ? fos.write(sb.toString().getBytes());
? ? fos.close();
? ? return fileName;
? ?} catch (FileNotFoundException e) {
? ? e.printStackTrace();
? ?} catch (IOException e) {
? ? e.printStackTrace();
? ?}
? }
? return null;
?}
}