我开始使用alaSQL并且看起来非常有前途,这个例子在阅读XLS文件时似乎很简单,但是我无法让它工作。
private Runnable mRunnable = new Runnable() {
@Override
public void run() {
isImage = false;
startRecording();
}
};
mCaptureButton.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
// Start recording after 1 sec
isImage = true;
mHandler = new Handler();
mHandler.postDelayed(mRunnable, 1000);
break;
case MotionEvent.ACTION_UP:
// If video recording was started after 1 sec delay then stop recording
// otherwise capture image
if(isImage) {
// Cancel handler for video recording
mHandler.removeCallbacks(mRunnable);
// Capture image
mCamera.takePicture(null, null, mPicture);
} else {
// Stop video recording
stopRecording();
}
break;
}
return true;
}
});
它抛出的错误无法从未定义的属性中读取。任何领导或帮助将不胜感激