private void setFullStop(boolean fullStop) { // Stop the motors Log.i(LOG_TAG, "Fullstop: " + fullStop); try { if (gameControl != null && gameControl.hasRobotControl()) { if (fullStop && !gameControl.isAtFullStop()) { gameControl.setFullStop(true); return; } if (!fullStop && gameControl.isAtFullStop()) { gameControl.setFullStop(false); return; } } } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); } // Add this to the SeekBars' change listener. }