private void handleResponse(AvsResponse response){
  mEventManager.post(new CommandEvent(CommandEvent.TYPE_COMMAND_SEARCHING,KEYWORD_ALEXA));
  if (response != null) {
    for (int i=response.size() - 1; i >= 0; i--) {
      if (response.get(i) instanceof AvsReplaceAllItem || response.get(i) instanceof AvsReplaceEnqueuedItem) {
        mAvsQueue.clear();
        response.remove(i);
      }
    }
    Timber.i("Adding %s items to our queue",response.size());
    mAvsQueue.addAll(response);
  }
  checkQueue();
}

private void handleResponse ( AvsResponse response ) { mEventManager . post ( new CommandEvent ( CommandEvent . TYPE_COMMAND_SEARCHING , KEYWORD_ALEXA ) ) ; if ( response != null ) { for ( int i = response . size ( ) - 1 ; i >= 0 ; i -- ) { if ( response . get ( i ) instanceof AvsReplaceAllItem || response . get ( i ) instanceof AvsReplaceEnqueuedItem ) { mAvsQueue . clear ( ) ; response . remove ( i ) ; } } Timber . i ( "Adding %s items to our queue" , response . size ( ) ) ; mAvsQueue . addAll ( response ) ; } 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 )
