TutorialScene1Activity.java 960 Bytes
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 mon pote!\nJe suis Noa.\nTu peux m'aider ?\nRetrouve mon ballon de football.");
        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));
    }
}