question: 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 ( ) ; } }
target:  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)