I'm trying to run NyARToolkit (ARToolkit for Android) in my Android HTC Magic device with OS 2.1 (API level 7) but constantly receiving the following exception -
E/QualcommCameraHardware( 96): Invalid preview size requested: 320x430 D/AndroidRuntime( 3376): Shutting down VM W/dalvikvm( 3376): threadid=3: thread exiting with uncaught exception (group=0x4001e180) E/AndroidRuntime( 3376): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 3376): java.lang.RuntimeException: setParameters failed E/AndroidRuntime( 3376): at android.hardware.Camera.native_setParameters(Native Method) E/AndroidRuntime( 3376): at android.hardware.Camera.setParameters(Camera.java:619) E/AndroidRuntime( 3376): at zibjana.app.android_group.artoolkit.NyARToolkitAndroidActivity.setViewFinder(NyARToolkitAndroidActivity.java: 379) E/AndroidRuntime( 3376): at zibjana.app.android_group.artoolkit.NyARToolkitAndroidActivity.surfaceChanged(NyARToolkitAndroidActivity.java: 242) E/AndroidRuntime( 3376): at android.view.SurfaceView.updateWindow(SurfaceView.java:460) E/AndroidRuntime( 3376): at android.view.SurfaceView.dispatchDraw(SurfaceView.java:287) E/AndroidRuntime( 3376): at android.view.ViewGroup.drawChild(ViewGroup.java:1529) E/AndroidRuntime( 3376): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) E/AndroidRuntime( 3376): at android.view.ViewGroup.drawChild(ViewGroup.java:1529) E/AndroidRuntime( 3376): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) E/AndroidRuntime( 3376): at android.view.View.draw(View.java:6557) E/AndroidRuntime( 3376): at android.widget.FrameLayout.draw(FrameLayout.java:352) E/AndroidRuntime( 3376): at android.view.ViewGroup.drawChild(ViewGroup.java:1531) E/AndroidRuntime( 3376): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) E/AndroidRuntime( 3376): at android.view.ViewGroup.drawChild(ViewGroup.java:1529) E/AndroidRuntime( 3376): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) E/AndroidRuntime( 3376): at android.view.View.draw(View.java:6557) E/AndroidRuntime( 3376): at android.widget.FrameLayout.draw(FrameLayout.java:352) E/AndroidRuntime( 3376): at com.android.internal.policy.impl.PhoneWindow $DecorView.draw(PhoneWindow.java:1830) E/AndroidRuntime( 3376): at android.view.ViewRoot.draw(ViewRoot.java:1349) E/AndroidRuntime( 3376): at android.view.ViewRoot.performTraversals(ViewRoot.java:1114) E/AndroidRuntime( 3376): at android.view.ViewRoot.handleMessage(ViewRoot.java:1633) E/AndroidRuntime( 3376): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 3376): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 3376): at android.app.ActivityThread.main(ActivityThread.java:4363) E/AndroidRuntime( 3376): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 3376): at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime( 3376): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) Before this I used it in Android 1.6 (API level 4) and it worked fine. With some search I found that it is suggested to modify the getPictureSize() method. As I downloaded the source code, so I'm bit confused about making these changes. Any sort of help will be appreciated. -- 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

