Code example for ViewSwitcher

Methods: showNext

0
        } 
        else 
        { 
            isListeningForActivation = true;
            speechActivator.detectActivation();
            startStopButton.showNext();
            resetSpeakButtonText(); 
        } 
    } 
 
    private void stopActivator() 
    { 
        if (speechActivator != null)
        { 
            // first stop 
            speechActivator.stop();
            // then reset button 
            startStopButton.showPrevious();
        } 
        isListeningForActivation = false;
    }