Back to project page Android-TTSNotifier.
The source code is released under:
GNU General Public License
If you think the Android project Android-TTSNotifier listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package vub.lhoste.ttsnotifier; // w w w . ja va 2 s .c om import android.app.Activity; import android.content.Intent; import android.os.Bundle; public class TTSNotifierStartServiceActivity extends Activity { @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); try { Intent svc = new Intent(this, TTSNotifierService.class); startService(svc); } catch (Exception e) { } } @Override protected void onDestroy() { super.onDestroy(); Intent svc = new Intent(this, TTSNotifierService.class); stopService(svc); } }