Monday, May 3, 2010

[android-developers] Re: Problem in renaming file in Sdcard

On May 3, 9:23 am, brijesh masrani <masrani.brij...@gmail.com> wrote:
> I want to rename a file in sdcard using program, i am not able to do that
> using
>
> String[] prog ={"mv HArdcore.chm h_ardcore.chm"};
>
> Process p = Runtime.getRuntime().exec(prog);
>
> so if anyone knows how to do that than please reply.

http://d.android.com/reference/java/io/File.html#renameTo(java.io.File)

Regards,
Thilo

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment