Guest User

Untitled

a guest
Jul 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. String filename = "kontaktebi123.vcf";
  2. FileOutputStream outputStream;
  3.  
  4. try {
  5. outputStream = openFileOutput(filename, Context.MODE_PRIVATE);
  6. PrintWriter osw = new PrintWriter(outputStream);
  7. ArrayList<String> nomrebi = numberGenerator(view);
  8. osw.printf("blablabla")
  9. osw.flush();
  10. osw.close();
  11.  
  12. } catch (Exception e) {
  13. e.printStackTrace();
  14. }
  15.  
  16. String fileDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath();
  17. String fileName = "kontaktebi123.vcf";
  18.  
  19. File file = new File(fileDir + "/" + fileName);
Add Comment
Please, Sign In to add comment