public AndroidSensor(long rate){
  this.rate=rate;
  flag=true;
  start=System.currentTimeMillis();
  try {
    ss=new ServerSocket(6001);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  thread=new Thread(this);
}

public AndroidSensor ( long rate ) { this . rate = rate ; flag = true ; start = System . currentTimeMillis ( ) ; try { ss = new ServerSocket ( 6001 ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } thread = new Thread ( this ) ; }
new a androidsensor obj
