Blame view

app/src/main/java/tonio/noa/TutorialScene1Activity.java 972 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.
   */
  
d55d5943   aarnaude   resolution Bravo
10
  public class TutorialScene1Activity extends MyPlayActivity{
6b23e70e   aarnaude   first commit
11
12
  
      @Override
c13d9bc3   aarnaude   activity consigne...
13
14
15
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          Intent i = new Intent(this, ConsigneActivity.class);
b66e4091   aarnaude   ajout activités d...
16
          i.putExtra("keyConsigne","Salut!\nJe suis Noa.\nTu peux retrouver mon ballon de football?\nTouche l'écran pour m'aider.");
c13d9bc3   aarnaude   activity consigne...
17
18
          int requestCode = 0;
          startActivityForResult(i,requestCode);
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);
c13d9bc3   aarnaude   activity consigne...
25
26
27
28
29
30
         // do your stuff here after SecondActivity finished.
      }
  
      @Override
      protected void next() {
          startActivity(new Intent(this, TutorialScene2Activity.class));
6b23e70e   aarnaude   first commit
31
32
      }
  }