private void prepareADB(){
  try {
    startADB();
    portForwarding();
    Thread.sleep(1500);
  }
 catch (  InterruptedException ex1) {
  }
}

private void prepareADB ( ) { try { startADB ( ) ; portForwarding ( ) ; Thread . sleep ( 1500 ) ; } catch ( InterruptedException ex1 ) { } }
executing relevant adb commands in the right order to make the connection with the device and then with the adbvapplication configured app .
