I third that! :) :) So as an alternative, I tried putting a "crop"/"true" extra onto the intent that starts the MediaStore.ACTION_IMAGE_CAPTURE activity, and I get the following exception:
04-08 09:58:35.720: ERROR/AndroidRuntime(260): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.android.camera.action.CROP dat=file:///data/data/com.android.camera/files/crop-temp (has extras) } 04-08 09:58:35.720: ERROR/AndroidRuntime(260): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1408) 04-08 09:58:35.720: ERROR/AndroidRuntime(260): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378) 04-08 09:58:35.720: ERROR/AndroidRuntime(260): at android.app.Activity.startActivityForResult(Activity.java:2749) 04-08 09:58:35.720: ERROR/AndroidRuntime(260): at com.android.camera.Camera.doAttach(Camera.java:1181) 04-08 09:58:35.720: ERROR/AndroidRuntime(260): at com.android.camera.Camera.onClick(Camera.java:1088) ... Would you say that the usage of the "crop" extra is also an implementation detail that should not be used? Is this a bug? TIA PT On Mon, Mar 29, 2010 at 6:56 AM, Streets Of Boston <flyingdutc...@gmail.com>wrote: > I second that! :) > > On Mar 29, 8:36 am, "anton.slut...@gmail.com" > <anton.slut...@gmail.com> wrote: > > Sure, makes sense. My two cents is, it seems like a whole lot of > > people need to grab an image from the gallery and plop a chunk of a > > certain size out of that image. Ofcourse, doing that by hand is > > possible and wouldn't be all that hard, but it would involve a hole > > lot of typing for us app developers and lead to poor user experience > > since they will have to relearn this function from app to app. I > > would be simply thrilled if this functionality were to become a part > > of the SDK. It's reusable and generic enough to make the cut, I > > think. > > > > Anton > > > > On Mar 28, 2:34 pm, Dianne Hackborn <hack...@android.com> wrote: > > > > > > > > > Just to be extra super clear on this -- if you are doing stuff that is > not > > > in the SDK, you can expect that your app will break at some point on > future > > > versions, on different devices, etc. > > > > > Any case where you are using magic string constants or such, that isn't > a > > > reference to a constant in the SDK, is almost certainly a case where > you are > > > using internal implementation details. Expect to break. > > > > > In this particular case, if there is no constant in the SDK for the > string > > > "com.android.camera.action.CROP" then this is simply not a part of the > SDK, > > > and has a chance of breaking in the future. > > > > > -- > > > Dianne Hackborn > > > Android framework engineer > > > hack...@android.com > > > > > Note: please don't send private questions to me, as I don't have time > to > > > provide private support, and so won't reply to such e-mails. All such > > > questions should be posted on public forums, where I and others can see > and > > > answer them.- 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%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, reply using "remove me" as the subject.