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;
?}
}