Why my Text to Speech setup does not initialize successfully?
<p>For some reason, stautus in the onInit method will never be TextToSpeech.SUCCESS. Why?</p>

<pre><code>package me.ruben.learningproject;

import android.app.Activity;
import android.speech.SpeechRecognizer;
import android.speech.tts.TextToSpeech;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import java.util.Locale;


public class MainActivity extends Activity implements    TextToSpeech.OnInitListener {

    TextToSpeech tts;
    EditText inputText;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        tts = new TextToSpeech(this, this);
        inputText = (EditText)findViewById(R.id.inputText);
    }

    @Override
    public void onInit(int status){
        if(status != TextToSpeech.SUCCESS){
            Toast.makeText(this, "Error initializing text to speech!", Toast.LENGTH_LONG).show();
            return;
        }
        tts.setLanguage(Locale.UK);
        ((Button) findViewById(R.id.speakBtn)).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                speak();
            }
        });
    }

    void speak(){
        tts.speak(inputText.getText().toString(), TextToSpeech.QUEUE_FLUSH, null);
    }
}
</code></pre>

<p>It doesn't even work after a reboot and I don't get any compilation errors in Android Studio.</p>

<p>Any idea what it might be?</p>