Blame view

app/src/main/java/tonio/noa/TutorialScene1Activity.java 1018 Bytes
6b23e70e   aarnaude   first commit
1
2
  package tonio.noa;
  
6b23e70e   aarnaude   first commit
3
4
  import android.content.Intent;
  import android.os.Bundle;
4fbbe27a   aarnaude   ajout de la fonct...
5
6
7
  import android.speech.tts.TextToSpeech;
  import android.view.View;
  import android.widget.TextView;
6b23e70e   aarnaude   first commit
8
9
10
11
12
  
  /**
   * Created by tonio on 22/11/17.
   */
  
2db7566f   aarnaude   modification de M...
13
  public class TutorialScene1Activity extends MyPlayActivity {
6b23e70e   aarnaude   first commit
14
15
  
      @Override
c13d9bc3   aarnaude   activity consigne...
16
17
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
2db7566f   aarnaude   modification de M...
18
          lanceConsigne("Salut!\nJe suis Noa.\nTu peux retrouver mon ballon de football?\nTouche l'écran pour m'aider.");
6b23e70e   aarnaude   first commit
19
20
      }
  
d55d5943   aarnaude   resolution Bravo
21
      @Override
c13d9bc3   aarnaude   activity consigne...
22
23
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
d55d5943   aarnaude   resolution Bravo
24
          setContentView(R.layout.tutorial1_display);
4fbbe27a   aarnaude   ajout de la fonct...
25
26
27
28
          TextView txtV = findViewById(R.id.cons_tut1);
          smallCons = "Touche le ballon de foot.";
          txtV.setText(smallCons);
          setTts();
c13d9bc3   aarnaude   activity consigne...
29
30
31
32
33
      }
  
      @Override
      protected void next() {
          startActivity(new Intent(this, TutorialScene2Activity.class));
6b23e70e   aarnaude   first commit
34
      }
4fbbe27a   aarnaude   ajout de la fonct...
35
  
6b23e70e   aarnaude   first commit
36
  }