If you haven't done so already, post this on http://b.android.com.
Also, have you compared your code to that of Barcode Scanner? That app uses auto-focus and preview callbacks (AFAICT, as an end user, haven't looked at their code) and does not crash on 2.3.3 the way you describe here. On Mon, Mar 21, 2011 at 5:14 PM, Zach <zachary.bu...@gmail.com> wrote: > I've had some opportunity to test. Mark, I tested your code but it seems > this issue is tied to using autofocus and preview callbacks. > I've created a minimalistic sample that reproduces the problem. The > following code will run on all of my Android devices that are < 2.3.3 but > not on 2.3.3. > source - http://pastebin.com/TQsfiyTr > main.xml - http://pastebin.com/DQHW2jVS > There are 2 issues I can illustrate with this source running on a 2.3.3 > device: > > Uncomment the 2 lines in Camera.PreviewCallback. The app will crash because > the camera parameters are null. Note, you will need to add the > import android.hardware.Camera.Size; (I got over-zealous when cleaning up > this example). > Leave the 2 lines commented out, the preview will not initialize and screen > will remain black. Logcat will show that media/camera server have crashed. > > Again, we've been running this base-code for over a year on non 2.3.3 > devices. > > -- > 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.5 Available! -- 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