android activity without graphic
<p>From the BroadcastReceiver I want to call a activity without graphic. Without graphic because it will speak some words. </p>

<pre><code>Intent iSpeechIntent = new Intent(context, TTS.class);                          
iSpeechIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(iSpeechIntent);
</code></pre>

<p>but activity cycle is not finished correctly. <code>onDestroy()</code> method is never executed. Why?</p>

<pre><code>@Override
    public void onDestroy() {
        // Don't forget to shutdown!
        if (tts != null) {
            tts.stop();
            tts.shutdown();
        }
        super.onDestroy();
    }
</code></pre>

<p>And is OK if i am using activity without graphic XML just for speak some text with TTSEngine?</p>
