TutorialScene1Activity.java
1018 Bytes
package tonio.noa;
import android.content.Intent;
import android.os.Bundle;
import android.speech.tts.TextToSpeech;
import android.view.View;
import android.widget.TextView;
/**
* Created by tonio on 22/11/17.
*/
public class TutorialScene1Activity extends MyPlayActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
lanceConsigne("Salut!\nJe suis Noa.\nTu peux retrouver mon ballon de football?\nTouche l'écran pour m'aider.");
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
setContentView(R.layout.tutorial1_display);
TextView txtV = findViewById(R.id.cons_tut1);
smallCons = "Touche le ballon de foot.";
txtV.setText(smallCons);
setTts();
}
@Override
protected void next() {
startActivity(new Intent(this, TutorialScene2Activity.class));
}
}