Michael, thanks for the explanation.

When you mean copy, does that mean I have to read from one file and write to
another one? Or Java provide a way to do the copy?

Also, is there a way to mark a file in the sdcard to be private so no other
app can see it? That way, I won't need to copy the file anymore. :)

On Wed, Mar 18, 2009 at 10:43 AM, Michael MacDonald <
googlec...@antlersoft.com> wrote:

>
> Rename won't work because they are on different file system.  You'll
> have to physically copy from one to the other.
>
> yves...@gmail.com wrote:
> > I want to move some files from sdcard to /data/data/myapp/files
> > folder, I can use OpenInputFile and OpenOutputFile and write to it,
> > then delete the original one. But it is slow, so, I tried to use
> > oldFile.Rename(newFile), but it always return false. Any idea? The
> > reason I am doing this is to hide some files from my sdcard, so,
> > nobody can see them.
> >
> > >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to