http://exampledepot.com/egs/java.io/CopyFile.html

On Mon, Nov 28, 2011 at 11:42 AM, saex <elpablos...@gmail.com> 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 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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 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