• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to let Text to Speech speak on opening app

Ranch Hand
Posts: 40
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

i want to use text to speech and i want it to speak a sentence when the app opens.

The text to speech works, but not in the way it should.

The app starts and the first activity loads. After that it crashes and after the crash the sentence loading is spoken.

Why the activity/app crashes first?

Error is "Application has stoped".

After the Toast popup the Loading text is spoken.

Can anyone help?

My code to do that is:
    Bookmark Topic Watch Topic
  • New Topic