Hi, have you found a solution to this problem? Strangely i have it a bit different: can rename without remounting anything (only with the renameTo function) on the sdcard but can't rename in the local storage.
On Jun 17, 9:49 am, focode <[email protected]> wrote: > i have to change the name of a jpgfile, for that i have written the > following code > > sdcard = Environment.getExternalStorageDirectory(); > from = newFile(sdcard,imagePath.substring(8).toString()); > to = newFile(sdcard,"/DCIM/RoseVille_"+Info.getText() > +"_"+Amount.getText()+"_"+timeStampFormat.format(n ew Date())+".jpg"); > > if(from.renameTo(to)==true) > { > /// if renamming is successfull; > > } > > this code creates a newfilewith the required name while thefile > which i wanted to change is still their on sd card , if i remount the > sd card then the oldfilegets deleted and the renamedfileremains > their. > > so my problem is how torenamethefilewithout remounting the sd card > > thanks and regards > focode -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

