Code example for TextToSpeech

Methods: shutdown, stop

0
	public void onDestroy() 
	{ 
		mNotificationManager.cancel(1);
		if(mTts!=null)
		{ 
			mTts.stop();
	        mTts.shutdown();
		} 
        twitter.shutdown();
		((SpeakBirdApplication)getApplication()).setBusy(false);
 
	} 
	 
	protected boolean checkForSavedLogin() {   
   	 // Get Access Token and persist it   
   	 AccessToken a = getAccessToken();  
   	 if (a==null) 
   		 { 
   		 	return false; //if there are no credentials stored then return to usual activity   
   		 }