Re: [android-developers] renaming a image file on sd card

2010-08-07 Thread Alex Xin
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; }

[android-developers] renaming a image file on sd card

2010-06-18 Thread focode
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.format(n