The document provided by Adobe does not mention how you should read
the returned Uri. For compatibility with future versions and other
image editors, you should not assume that it is a 'file:' scheme Uri,
it could also be a 'content:' scheme Uri. The ContentResolver will
handle it. here is the code:

@Override
public void onActivityResult(int requestCode, int resultCode, Intent
data)
{
    super.onActivityResult(requestCode, resultCode, data);
    if (requestCode == LAUNCH_EDITOR)
    {
        if (resultCode == Activity.RESULT_OK)
        {
            Uri savedImage = data.getData();
            // savedImage is the Uri for the newly created
            // edited version of the original image.

            ContentResolver cr = getContentResolver();

            InputStream in = null;
            try {
                 in = cr.openInputStream(savedImage);
                 // you now have an InputStream to the saved image
                 // you can copy it by saving to an OutputStream
                 // or you can load it as a Bitmap
                 Bitmap bitmap = BitmapFactory.decodeStream(in);

            } catch (IOException e)
            {
            }
        }
        else
        {
            // Edit Operation canceled by user
        }
    }
}


On Mar 5, 9:10 pm, Adobe DI Mobile <mobilead...@gmail.com> wrote:
> ThePhotoshop.com Mobile editor is now available to the Android
> developer community as an activity that handles actions of type
> Intent.ACTION_EDIT, for image content that has data of mime-type image/
> *.
>
> For more information on incorporating the editor into your Android
> application, please visit:http://mobile.photoshop.com/android/developers.html

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