Code example for ViewSwitcher

Methods: showPrevious

0
        if (speechActivator != null)
        { 
            // first stop 
            speechActivator.stop();
            // then reset button 
            startStopButton.showPrevious();
        } 
        isListeningForActivation = false;
    } 
     
    private void resetSpeakButtonText() 
    { 
        setStartButton(); 
        setStopButton(); 
    } 
 
    private void setStartButton() 
    { 
        String prefix = getResources().getString(R.string.speech_activation_btn_prefix);
        String label = SpeechActivatorFactory.getLabel(this, speechActivator);
        if (speechActivator == null)