public AndroidCamera(int width,int height,long imageFrameRate){
  this.width=width;
  this.height=height;
  this.imageFrameRate=imageFrameRate;
  flag=true;
  start=System.currentTimeMillis();
  try {
    ss=new ServerSocket(6000);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  pImage=new PImage(width,height,PImage.RGB);
  thread=new Thread(this);
}

public AndroidCamera ( int width , int height , long imageFrameRate ) { this . width = width ; this . height = height ; this . imageFrameRate = imageFrameRate ; flag = true ; start = System . currentTimeMillis ( ) ; try { ss = new ServerSocket ( 6000 ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } pImage = new PImage ( width , height , PImage . RGB ) ; thread = new Thread ( this ) ; }
new a androidcamera obj
