Hi,
I'm writing an application where images are read from the filesystem
based on a certain naming scheme and file structure. To add images to
the application, I need to be able to add to this file structure. I
need to be able to select from existing images and copy the image to
its new location.
I've set up a chooser, as follows:
i = new Intent(Intent.ACTION_GET_CONTENT, null);
i.setType("image/jpg");
startActivityForResult(Intent.createChooser(i, "Select photo"),
PICK_FROM_FILE);
When I get the result using this line:
URI uri = URI.create(outputIntent.getData().toString());
the value of uri looks like this: content://media/external/images/media/2
How do I transform this into a jpg 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
-~----------~----~----~----~------~----~------~--~---