I'm trying to implement TTS into my app, I started by making a test
app to try all the functions first which works fine.
But when I try to implement it into the actual app it doesn't


private TextToSpeech tts = null;

@Override
public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        tts = new TextToSpeech(this, this);

        ...
}

@Override
public void onInit(int status) {
        boolean isAvailable = (TextToSpeech.SUCCESS == status);
        ...
}

in onInit on my test app I get status 0 which is success. But in the
other one I get -1 no matter what I do. From what I can see the code
is exactly the same but for some reason it doesn't work. The code
above is from the not working one.

Any suggestions? Is there a tiny permission or something I'm missing?

//André

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to