@Override
 public String run(Properties parms) {
   int wid = Integer.parseInt(parms.getProperty("wid"));
   int hei = Integer.parseInt(parms.getProperty("hei"));
   Log.d(TAG, ">>>>>>>run in doSetup wid = " + wid + " hei=" + hei);
   cameraView_.StopPreview();
   cameraView_.setupCamera(wid, hei, previewCb_);
   cameraView_.StartPreview();
   return "OK";
 }
 @Override
 public String run(Properties parms) {
   int degree = Integer.parseInt(parms.getProperty("degree"));
   Log.d(TAG, ">>>>>>>run in doRotate degree = " + degree);
   cameraView_.StopPreview();
   cameraView_.Rotate(degree);
   cameraView_.setupCamera(cameraView_.Width(), cameraView_.Height(), previewCb_);
   cameraView_.StartPreview();
   return "OK";
 }
 @Override
 public void onCameraReady() {
   if (initWebServer()) {
     int wid = cameraView_.Width();
     int hei = cameraView_.Height();
     cameraView_.StopPreview();
     cameraView_.setupCamera(wid, hei, previewCb_);
     cameraView_.StartPreview();
   }
 }