I have Path Which is stored into one variable That is
String Path:
String filepath="/mnt/sdcard/DCIM/Camera/1396854069062.jpg";
Now i want to rename only file that is 1396854069062.jpg I Reilly don't have any idea for how to do that.
My Code Is:
File sdcard = Environment.getExternalStorageDirectory();
File from = new File(sdcard, filePath);
File to = new File(sdcard, "RChat_Rename.jpg";
from.renameTo(to);
Any help will b appreciated.
Thank You