package tonio.noa; import android.content.Intent; import android.os.Bundle; /** * Created by tonio on 22/11/17. */ public class TutorialScene1Activity extends MyPlayActivity{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent i = new Intent(this, ConsigneActivity.class); i.putExtra("keyConsigne","Salut!\nJe suis Noa.\nTu peux retrouver mon ballon de football?\nTouche l'écran pour m'aider."); int requestCode = 0; startActivityForResult(i,requestCode); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); setContentView(R.layout.tutorial1_display); // do your stuff here after SecondActivity finished. } @Override protected void next() { startActivity(new Intent(this, TutorialScene2Activity.class)); } }