Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-26 Thread Mark Murphy
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

Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-25 Thread Paul Tongyoo
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

Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-24 Thread Paul Tongyoo
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

[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-24 Thread Streets Of Boston
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

Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-24 Thread Paul Tongyoo
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

[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-24 Thread Streets Of Boston
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

[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-23 Thread Streets Of Boston
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,

Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-23 Thread Paul Tongyoo
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

[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-23 Thread Streets Of Boston
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

Re: [android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-23 Thread Paul Tongyoo
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 {

[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-23 Thread Streets Of Boston
... 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:

[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-23 Thread Kantesh
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