Blame view

app/src/main/java/tonio/noa/TutorialScene1Activity.java 826 Bytes
6b23e70e   aarnaude   first commit
1
2
  package tonio.noa;
  
6b23e70e   aarnaude   first commit
3
4
  import android.content.Intent;
  import android.os.Bundle;
6b23e70e   aarnaude   first commit
5
6
7
8
9
  
  /**
   * Created by tonio on 22/11/17.
   */
  
2db7566f   aarnaude   modification de M...
10
  public class TutorialScene1Activity extends MyPlayActivity {
6b23e70e   aarnaude   first commit
11
12
  
      @Override
c13d9bc3   aarnaude   activity consigne...
13
14
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
2db7566f   aarnaude   modification de M...
15
          lanceConsigne("Salut!\nJe suis Noa.\nTu peux retrouver mon ballon de football?\nTouche l'écran pour m'aider.");
6b23e70e   aarnaude   first commit
16
17
      }
  
d55d5943   aarnaude   resolution Bravo
18
      @Override
c13d9bc3   aarnaude   activity consigne...
19
20
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
d55d5943   aarnaude   resolution Bravo
21
          setContentView(R.layout.tutorial1_display);
2db7566f   aarnaude   modification de M...
22
          // do your stuff here after SecondActivity finished.
c13d9bc3   aarnaude   activity consigne...
23
24
25
26
27
      }
  
      @Override
      protected void next() {
          startActivity(new Intent(this, TutorialScene2Activity.class));
6b23e70e   aarnaude   first commit
28
29
      }
  }