Thanks, but probably i didn't explain the question perfectly. I dont
need a outputstream, and i dont have a input stream. I have a File
object, and i need to create a independent copy of the object, another
File object with the same content with no reference maintained.

On Nov 28, 5:44 pm, Mark Murphy <[email protected]> wrote:
> http://exampledepot.com/egs/java.io/CopyFile.html
>
>
>
>
>
>
>
>
>
> On Mon, Nov 28, 2011 at 11:42 AM, saex <[email protected]> wrote:
> > Official facebook App haves a bug, when you try to share a image with
> > share intent, the image gets deleted from the sdcard. This is the way
> > you have to pass the image to facebook app using the uri of the image:
>
> > File myFile= new File(Environment.getExternalStorageDirectory(),
> > "car.jpg");
> > Uri uri = Uri.fromFile(myFile);
> > i.putExtra(Intent.EXTRA_STREAM, uri);
>
> > Then, i supose that if i create a copy from the original myFile
> > object, and i pass the uri of the copy to facebook app, then, my
> > original image will not be deleted.
>
> > Please, can someone tell me how to do a exact copy of a file?
>
> > Thanks
>
> > --
> > 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
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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

Reply via email to