Advertisement
Guest User

Untitled

a guest
Nov 24th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement