title: Start service after setOnUtteranceProgressListener on done?
body: <p>I have a problem i want to start android service after Text to speech finish speak. </p>
  
  <p>Here is my Code</p>
  
  <pre><code>HashMap&lt;String, String&gt; myHashAlarm = new HashMap&lt;String, String&gt;();
          myHashAlarm.put(TextToSpeech.Engine.KEY_PARAM_STREAM, String.valueOf(AudioManager.STREAM_ALARM));
          myHashAlarm.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "SOME MESSAGE");
          t1.speak(text, TextToSpeech.QUEUE_FLUSH, myHashAlarm);
          t1.speak("I can speak anything",TextToSpeech.QUEUE_ADD, null);
  </code></pre>
  
  <hr>
  
  <pre><code>@Override
              public void onInit(int status) {
                  if (status != TextToSpeech.ERROR) {
                      t1.setLanguage(Locale.US);
                      t1.setOnUtteranceProgressListener(new UtteranceProgressListener() {
                          @Override
                          public void onDone(String utteranceId) {
                              // Log.d("MainActivity", "TTS finished");
  //here i want to start my service
  startService(new Intent(this, MyService.class));// but its not working
  
                          }
  
                          @Override
                          public void onError(String utteranceId) {
                          }
  
                          @Override
                          public void onStart(String utteranceId) {
                          }
                      });;
                  }
              }
  </code></pre>
  
  <p>Please help me....</p>