Code example for TextToSpeech

Methods: shutdown, stop

0
	} 
 
    @Override 
    public void onDestroy() { 
        if (mTts != null) {
            mTts.stop();
            mTts.shutdown();
        } 
        Log.v(TAG, "Shutting down SMS Speaker");
        super.onDestroy(); 
    } 
 
    @Override 
    public IBinder onBind(Intent arg0) {
        return null; 
    } 
 
	/** 
	 * Check if preferences allow this text message to be announced at all. 
	 * @return true if allowed, false otherwise 
	 */