The system's cropping activity comes with the camera app (camera.git).
Since the emulator's camera activity is very different, i can imagine
that the cropping activity is not quite the same either or may not
even exist on the emulator. If this is the case, then they(google) at
least should've made the cropping activity the same... it's not
dependent on any hardware, me thinks.


On Mar 24, 10:57 am, Paul Tongyoo <paul.tong...@gmail.com> wrote:
> Thanks Streets, I'll give it a shot.  If the issue was due to missing
> hardware though, wouldn't I get a different ("lower-level") type of error?
>
> Best,
> Paul
>
> On Wed, Mar 24, 2010 at 7:26 AM, Streets Of Boston
> <flyingdutc...@gmail.com>wrote:
>
>
>
> > Note that the emulator's camera application is NOT the ones running on
> > most actual devices.
> > Test it on an actual device, a few of them if possible.
>
> > On Mar 24, 2:35 am, Paul Tongyoo <paul.tong...@gmail.com> wrote:
> > > At the moment I'm just running the code against the 2.0 emulator....hm.
>
> > > On Tue, Mar 23, 2010 at 8:08 PM, Streets Of Boston
> > > <flyingdutc...@gmail.com>wrote:
>
> > > > mmmmmmmm... very strange, how come it works fine on my Droid (2.0.1),
> > > > on my G1 (1.6) and my Nexus One (2.1-u1)...? I just tried it on all
> > > > three phones.
>
> > > > What phone are you trying it on?
>
> > > > On Mar 23, 6:46 pm, Paul Tongyoo <paul.tong...@gmail.com> wrote:
> > > > > I received this error:
>
> > > > > 03-23 15:40:13.871: ERROR/AndroidRuntime(308):
> > > > java.lang.RuntimeException:
> > > > > Failure delivering result ResultInfo{who=null, request=1, result=-1,
> > > > > data=null} to activity {...}:
> > android.content.ActivityNotFoundException:
> > > > No
> > > > > Activity found to handle Intent { act=com.android.camera.action.CROP
> > > > > /temp-image.jpg (has extras) }
> > > > > 03-23 15:40:13.871: ERROR/AndroidRuntime(308):     at
> > > > > android.app.ActivityThread.deliverResults(ActivityThread.java:3224)
> > > > > 03-23 15:40:13.871: ERROR/AndroidRuntime(308):     at
> > > > > android.app.ActivityThread.handleSendResult(ActivityThread.java:3266)
> > > > > 03-23 15:40:13.871: ERROR/AndroidRuntime(308):     at
> > > > > android.app.ActivityThread.access$2600(ActivityThread.java:116)
> > > > > 03-23 15:40:13.871: ERROR/AndroidRuntime(308):     at
> > > > > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1823)
>
> > > > > I then tried adding this line:
>
> > > > >                 intent.putExtra("return-data", true);
>
> > > > > ... which then gave me this error:
>
> > > > > 03-23 15:45:49.880: ERROR/AndroidRuntime(377): Caused by:
> > > > > android.content.ActivityNotFoundException: No Activity found to
> > handle
> > > > > Intent { act=com.android.camera.action.CROP
> > > > > dat=file:///sdcard/......../temp-image.jpg (has extras) }
> > > > > 03-23 15:45:49.880: ERROR/AndroidRuntime(377):     at
>
> > android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1­­­484)
> > > > > 03-23 15:45:49.880: ERROR/AndroidRuntime(377):     at
>
> > android.app.Instrumentation.execStartActivity(Instrumentation.java:1454)
> > > > > 03-23 15:45:49.880: ERROR/AndroidRuntime(377):     at
> > > > > android.app.Activity.startActivityForResult(Activity.java:2661)
>
> > > > > What do you think?
>
> > > > > On Tue, Mar 23, 2010 at 2:57 PM, Streets Of Boston
> > > > > <flyingdutc...@gmail.com>wrote:
>
> > > > > > Did you try my example? It works fine on my Motorola Droid and many
> > > > > > other droids i know of.
>
> > > > > > On Mar 23, 5:29 pm, Paul Tongyoo <paul.tong...@gmail.com> wrote:
> > > > > > > Thanks guys -- I jumped the gun after poking around at the source
> > and
> > > > > > seeing
> > > > > > > my code not working on a Droid, however further debugging shows
> > the
> > > > code
> > > > > > > works on my 2.0 emulator ... Are there any known issues with crop
> > > > code
> > > > > > and
> > > > > > > the Droid?
>
> > > > > > > @SOB:  For some reason, my code requires that I explicitly call:
>
> > > > > > > intent.setClassName("com.android.camera",
> > > > > > "com.android.camera.CropImage");
>
> > > > > > > ... or else I get the following error:
>
> > > > > > > 03-23 14:17:09.119: ERROR/AndroidRuntime(222): Caused by:
> > > > > > > android.content.ActivityNotFoundException: No Activity found to
> > > > handle
> > > > > > > Intent { act=com.android.camera.action.CROP ...
>
> > > > > > > Maybe I'm missing a required configuration somewhere else?
>
> > > > > > > --Paul
>
> > > > > > > On Tue, Mar 23, 2010 at 2:22 PM, Streets Of Boston
> > > > > > > <flyingdutc...@gmail.com>wrote:
>
> > > > > > > > I tried this on G1, N1 and Nexus one, and it works for me:
>
> > > > > > > > final Intent intent = new
> > Intent("com.android.camera.action.CROP");
> > > > > > > > intent.setData(mImgUris[1]);
> > > > > > > > intent.putExtra("noFaceDetection", false);
> > > > > > > > //intent.putExtra("outputX", width);
> > > > > > > > //intent.putExtra("outputY", height);
> > > > > > > > //intent.putExtra("aspectX", width);
> > > > > > > > //intent.putExtra("aspectY", height);
> > > > > > > > //intent.putExtra("scale", true);
> > > > > > > > //intent.putExtra("output", fileUri);
> > > > > > > > startActivityForResult(intent, R.id.view_image_menu_crop);
>
> > > > > > > > On Mar 23, 5:12 pm, Paul Tongyoo <paul.tong...@gmail.com>
> > wrote:
> > > > > > > > > I'm no longer seeing an Intent Filter declared for the
> > CropImage
> > > > > > activity
> > > > > > > > in
> > > > > > > > > the Eclair ... is there another way to re-use this activity?
>
> >http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=.
> > > > ..
>
> > > > > > > > > TIA!!
> > > > > > > > > Paul
>
> > > > > > > > --
> > > > > > > > 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%2bunsubs­cr...@googlegroups.com>
> > <android-developers%2bunsubs­cr...@googlegroups.com>
> > > > <android-developers%2bunsubs­cr...@googlegroups.com>
> > > > > > <android-developers%2bunsubs­cr...@googlegroups.com>
> > > > > > > > For more options, visit this group at
> > > > > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > > > > > To unsubscribe from this group, send email to
> > android-developers+
> > > > > > > > unsubscribegooglegroups.com or reply to this email with the
> > words
> > > > > > "REMOVE
> > > > > > > > ME" as the subject.- Hide quoted text -
>
> > > > > > > - Show quoted text -
>
> > > > > > --
> > > > > > 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%2bunsubs­cr...@googlegroups.com>
> > <android-developers%2bunsubs­cr...@googlegroups.com>
> > > > <android-developers%2bunsubs­cr...@googlegroups.com>
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > > > To unsubscribe from this group, send email to android-developers+
> > > > > > unsubscribegooglegroups.com or reply to this email with the words
> > > > "REMOVE
> > > > > > ME" as the subject.- Hide quoted text -
>
> > > > > - Show quoted text -
>
> > > > --
> > > > 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%2bunsubs­cr...@googlegroups.com>
> > <android-developers%2bunsubs­cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > To unsubscribe from this group, send email to android-developers+
> > > > unsubscribegooglegroups.com or reply to this email with the words
> > "REMOVE
> > > > ME" as the subject.- Hide quoted text -
>
> > > - Show quoted text -
>
> > --
> > 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%2bunsubs­cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> > To unsubscribe from this group, send email to android-developers+
> > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > ME" as the subject.- Hide quoted text -
>
> - Show quoted text -

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to