エラーメッセージ
The constructor TextToSpeech(SQLiteExample, SQLiteExample) is undefined 04-16 04:06:19.860: E/AndroidRuntime(1728): 原因: java.lang.ClassCastException: com.sql.SQLiteExample エラー行
myTts = new TextToSpeech(this, this);
onCreate メソッドで
エラーメッセージ
The constructor TextToSpeech(SQLiteExample, SQLiteExample) is undefined 04-16 04:06:19.860: E/AndroidRuntime(1728): 原因: java.lang.ClassCastException: com.sql.SQLiteExample エラー行
myTts = new TextToSpeech(this, this);
onCreate メソッドで
エラーのように、あなたはTextToSpeech
.asdocsが言うように正しいパラメータを渡していない:
TextToSpeech (Context context, TextToSpeech.OnInitListener listener)
context:このインスタンスが実行されているコンテキスト。
リスナー:TextToSpeechエンジンが初期化されたときに呼び出されるTextToSpeech.OnInitListener。