Native camera android in processing android

i am using a plain sketch not even showing preview image.

import ketai.camera.*;

KetaiCamera cam;
int time;
void setup() {
  orientation(LANDSCAPE);
  imageMode(CENTER);
  cam = new KetaiCamera(this, 176, 144, 30);
  time = millis();
}

void draw() {
  //image(cam, width/2, height/2);
}

void onCameraPreviewEvent()
{
  println(millis()-time);
  time=millis();
  cam.read();
}

// start/stop camera preview by tapping the screen
void mousePressed()
{
  if (cam.isStarted())
  {
    cam.stop();
  }
  else
    cam.start();
}
void keyPressed() {
  if (key == CODED) {
    if (keyCode == MENU) {
      if (cam.isFlashEnabled())
        cam.disableFlash();
      else
        cam.enableFlash();
    }
  }
}

the time for every frame capture is
image
so 7 fps approximately (this is on another phone.)

It doesn;t matter how efficient and elegant the tracking / drawing code is. If you preview 7fps you cannot work as you should. You would be processing the same frame many times.