can we test this feature in emulator
with regards
   Nayana

On Fri, Mar 12, 2010 at 6:18 PM, Nivek <kevin.gau...@gmail.com> wrote:

> > They could have added the result to the MediaStore and returned that
> > uri... I'll have to do it myself or my edit button disappears after
> > editing a picture...
>
> Actually, this is what I will have to do as a workaround, but I can't
> see any reason why they shouldn't accept a file:// uri as an input !
>
> Kevin
>
>
> On 13 mar, 03:10, Nivek <kevin.gau...@gmail.com> wrote:
> > There is an inconsistency in their Uri handling... The app accepts
> > only content:// Uris but provides the result as a file:// Uri... so it
> > can't edit it's own result again without us having to work this
> > around...
> >
> > They could have added the result to the MediaStore and returned that
> > uri... I'll have to do it myself or my edit button disappears after
> > editing a picture...
> >
> > I think Adobe should fix this.
> >
> > Kevin
> >
> > On 11 mar, 16:43, webmonkey <webmonke...@gmail.com> wrote:
> >
> >
> >
> > > 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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