That what I used in my code:
public static boolean rename(String orig_name, String new_name, String path)
{
File Operator1 = new File(path, orig_name);
File Operator2 = new File(path, new_name);
if (Operator1.exists() == false) {
return false;
}
if (Operator2.exists() == true) {
return false;
}
tr
i have to change the name of a jpg file , for that i have written the
following code
sdcard = Environment.getExternalStorageDirectory();
from = new File(sdcard,imagePath.substring(8).toString());
to = new File(sdcard,"/DCIM/RoseVille_"+Info.getText()
+"_"+Amount.getText()+"_"+timeStampFormat.forma
2 matches
Mail list logo