Hi, in fact this is because of the support preview screen size of your Nexus One, If you try to put width : 480 and height : 320 it should work :D (not 533x310)
See Roman Nurik answer here : http://stackoverflow.com/questions/2046523/runtimeexception-on-camera-setparameters-on-nexus-one nah0y. On Jun 22, 10:59 am, grace <[email protected]> wrote: > Hi, > > I have downloaded one open source ocr application. > when i run it on the g1 phone it is working,but for the nexus one its > throwing up a exception telling > E/QualcommCameraHardware( 52): Invalid preview size requested: > 533x310 > > E/AndroidRuntime( 5038): java.lang.RuntimeException: setParameters > failed > > hoe can i make this work on nexus too. > > thanks in advance.. > > Grace. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

