java.lang.IllegalStateException: Could not find a method capture(View) in the activity class
2014-01-22 10:09
411 查看
java.lang.IllegalStateException: Could not find a method capture(View) in the activity class com.android.xiong.cameratest.MainActivity for onClick handler on view class android.widget.Button with id 'take'
应是 button单击事件android:onclick才能调到 xml解析的时候估计不是同一类
欢迎加入QQ交流3群:317874559
private void capture(View source) { if (camera != null) { // 控制摄像头自动对焦后才拍摄 camera.autoFocus(autoFocusCallback); } }
应是 button单击事件android:onclick才能调到 xml解析的时候估计不是同一类
public void capture(View source) { if (camera != null) { // 控制摄像头自动对焦后才拍摄 camera.autoFocus(autoFocusCallback); } }
欢迎加入QQ交流3群:317874559
相关文章推荐
- java.lang.IllegalStateException: Could not find a method false(View) in the activity class com.xuan
- Could not find a method XXX(View) in the activity class
- java.lang.IllegalStateException: Could not execute method of the activity
- java.lang.IllegalStateException: Could not execute method of the activity
- 使用布局的Onclick属性运行出现“Could not find a method~~(View) in the activity class com.~~”
- java.lang.IllegalStateException: Could not find a method onStartSingleInstanceActivityClickLisenter(
- JMeter命令行执行及问题解决 Error in NonGUIDriver java.lang.RuntimeException: Could not find the TestPlan class!
- java.lang.IllegalStateException: Driver for test database type [H2] is not available in the classpat
- Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 错误的解决办法
- java.lang.IllegalArgumentException: The class class ** is not found in EntityFactory.
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- java打jar包的异常一:could not find the main class,java.lang.UnsupportedClassVersionError: Bad version numb
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- Could not find class 'com.pinggupad.Tansuo', referenced from method com.ping和java java.lang.NoClassD
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法 .
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- java.lang.IllegalStateException: Could not execute method of the activity
- Android 学习之异常总结--java.lang.IllegalStateException:Could not execute method of the activity
- Could not find class 'com.pinggupad.Tansuo', referenced from method com.ping和java java.lang.NoClassD