canalrun Well-Known Member Licensed User Longtime User Nov 16, 2011 #1 Hello, I'm trying to use the Camera Zoom function. The code in the ACL does not work for me, so I thought I would try using the Reflection Library. When I run the following code: c1Refl.RunMethod2("setZoom", s, "java.lang.Object") B4A always stops with an exception: Java.Lang.NoSuchMethodException:setZoom [class java.lang.Object] Am I doing something really dumb? Thanks, Barry.
Hello, I'm trying to use the Camera Zoom function. The code in the ACL does not work for me, so I thought I would try using the Reflection Library. When I run the following code: c1Refl.RunMethod2("setZoom", s, "java.lang.Object") B4A always stops with an exception: Java.Lang.NoSuchMethodException:setZoom [class java.lang.Object] Am I doing something really dumb? Thanks, Barry.
Erel B4X founder Staff member Licensed User Longtime User Nov 16, 2011 #2 Camera.Parameters | Android Developers setZoom expects an 'int' not object: B4X: c1Refl.RunMethod2("setZoom", s, "java.lang.int") Upvote 0
Camera.Parameters | Android Developers setZoom expects an 'int' not object: B4X: c1Refl.RunMethod2("setZoom", s, "java.lang.int")
canalrun Well-Known Member Licensed User Longtime User Nov 16, 2011 #3 Thanks, that explains a lot. I did not realize that third parameter referred to the data type – but I guess that's why it's labeled "Type" Barry. Upvote 0
Thanks, that explains a lot. I did not realize that third parameter referred to the data type – but I guess that's why it's labeled "Type" Barry.