三星Note 2 onTouchEvent jpeg数据无效,size = 0

时间:2013-12-02 13:01:55

标签: android

我正在开发一种相机应用程序,可在用户触摸屏幕时捕获图像 在三星Galaxy y没有出现任何问题,但在注2上相机停止并给我 错误的任何提示或想法?

触摸代码:

@Override 
      public boolean onTouchEvent(MotionEvent event ) { // TODO
      //Auto-generated method stub
         Log.d("e", "on touch starts * ");
        System.gc();  
      mCamera.stopPreview();
      Log.d("e", "touch event:   "+event.getActionMasked() );
      switch( event.getAction() ) {
      case 1 :
          Log.d("e", "taken pic action up = 1 * ");
          mCamera.takePicture(shutterCallback, null, mPicture);
          Log.d("e", "taken pic * ");
          Log.d("e", "on touch ends * ");
          return false;
      default:Log.d("e", "default touch event: "+event.getActionMasked() );
  }
    return true;

              }

logcat错误

  
    

12-03 12:22:06.034:E / SecCameraHardware(1932):无法设置系统调用     setaffinity:result = 22 = 0x16 12-03 12:22:06.324:E / ISecCameraHardware(1932):android :: status_t     android :: ISecCameraHardware :: checkArea(ssize_t,ssize_t,ssize_t,     ssize_t,ssize_t,int):所有值都为零 12-03 12:22:06.324:E / ISecCameraHardware(1932):FocusMode = auto,     PrevFocusMode = auto 12-03     12:22:06.359:E / SecCameraHardware(1932):无法设置系统调用     setaffinity:result = 22 = 0x16 12-03 12:22:07.479:     E / SecCameraHardware(1932): getHybridSnapshot 12-03 12:22:12.834:     E / SecCameraHardware(1932):bool android :: SecCameraHardware :: getHybridSnapshot()::无效的jpeg数据,     size = 0

  
     

> pictureThread:error,nativeGetSnapshot 12-03 12:22:12.834:E / ISecCameraHardware(1932):

0 个答案:

没有答案