private void handleResponse(AvsResponse response){
  boolean checkAfter=(avsQueue.size() == 0);
  if (response != null) {
    for (int i=response.size() - 1; i >= 0; i--) {
      if (response.get(i) instanceof AvsReplaceAllItem || response.get(i) instanceof AvsReplaceEnqueuedItem) {
        avsQueue.clear();
        response.remove(i);
      }
    }
    Log.i(TAG,"Adding " + response.size() + " items to our queue");
    avsQueue.addAll(response);
  }
  if (checkAfter) {
    checkQueue();
  }
}

private void handleResponse ( AvsResponse response ) { boolean checkAfter = ( avsQueue . size ( ) == 0 ) ; if ( response != null ) { for ( int i = response . size ( ) - 1 ; i >= 0 ; i -- ) { if ( response . get ( i ) instanceof AvsReplaceAllItem || response . get ( i ) instanceof AvsReplaceEnqueuedItem ) { avsQueue . clear ( ) ; response . remove ( i ) ; } } Log . i ( TAG , "Adding " + response . size ( ) + " items to our queue" ) ; avsQueue . addAll ( response ) ; } if ( checkAfter ) { checkQueue ( ) ; } }
handle the response sent back from alexa ' s parsing of the intent , these can be any of the avsitem types ( play , speak , stop , clear , listen )
