Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?
Paul Tongyoo wrote: And to confirm Romain Guy's response, YES the com.android.camera.action.CROP intent-filter IS defined in the Gallery class so NO google didn't remove the ability to call the CropImage activity. ;-) That does not mean it is a good idea. You do not want to be referencing com.android things from your code. If you like that activity, clone it and put it in your own project in your own package, so you control its existence. Or, write your own activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- 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.
Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?
Ah ha! Looks like my crop intent wasn't getting recognized because the data I was passing it had an unknown MIME type. Setting the data using intent.setDataAndType(Uri, String) did the trick. Looking forward to testing this new code on the friend's Droid (old code actually did work on the emulator all the time). And to confirm Romain Guy's response, YES the com.android.camera.action.CROP intent-filter IS defined in the Gallery class so NO google didn't remove the ability to call the CropImage activity. ;-) Thanks for the ears all, PT On Wed, Mar 24, 2010 at 8:29 AM, Streets Of Boston flyingdutc...@gmail.comwrote: 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.comwrote: 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 emulatorhm. On Tue, Mar 23, 2010 at 8:08 PM, Streets Of Boston flyingdutc...@gmail.comwrote: ... 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:1484) 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.comwrote: 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.comwrote: I tried
Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?
At the moment I'm just running the code against the 2.0 emulatorhm. On Tue, Mar 23, 2010 at 8:08 PM, Streets Of Boston flyingdutc...@gmail.comwrote: ... 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:1484) 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.comwrote: 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.comwrote: 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@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
[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?
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 emulatorhm. On Tue, Mar 23, 2010 at 8:08 PM, Streets Of Boston flyingdutc...@gmail.comwrote: ... 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:1484) 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.comwrote: 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.comwrote: 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@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
Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?
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.comwrote: 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 emulatorhm. On Tue, Mar 23, 2010 at 8:08 PM, Streets Of Boston flyingdutc...@gmail.comwrote: ... 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:1484) 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.comwrote: 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.comwrote: 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.comandroid-developers%2bunsubscr...@googlegroups.com
[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?
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.comwrote: 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 emulatorhm. On Tue, Mar 23, 2010 at 8:08 PM, Streets Of Boston flyingdutc...@gmail.comwrote: ... 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:1484) 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.comwrote: 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.comwrote: 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
[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?
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 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.
Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?
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.comwrote: 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.comandroid-developers%2bunsubscr...@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. -- 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.
[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?
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.comwrote: 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.comandroid-developers%2bunsubscr...@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.
Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?
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:1484) 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.comwrote: 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.comwrote: 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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. -- 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
[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?
... 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:1484) 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.comwrote: 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.comwrote: 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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
[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?
hi, i suggest, i dont exactly but, i think u forgot to register that particular activity in manifest file in activity node for application root.. On Mar 24, 8:08 am, Streets Of Boston flyingdutc...@gmail.com wrote: ... 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:1484) 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.comwrote: 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.comwrote: 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@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