Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 24th, 2013  |  syntax: None  |  size: 0.34 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. File from = new File(Environment.getExternalStorage().getAbsolutePath()+"/kaic1/imagem.jpg");
  2. File to = new File(Environment.getExternalStorage().getAbsolutePath()+"/kaic2/imagem.jpg");
  3. from.renameTo(to);
  4.        
  5. File file1 = new File("mnt/sdcard/kaic1/imagem.jpg");
  6. File file2 = new File("mnt/sdcard/Kaic2/imagem.jpg");
  7.  
  8. file1.renameTo(file2);