Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- val iFinish = getIntent()
- val numbers: String = iFinish.getStringExtra("LEVEL_NUMBER")
- val plays: String = iFinish.getStringExtra("NUMBER_PLAYS")
- textViewNumPlays.text = plays
- textViewRandom.text = numbers
- }
- fun onButtonRestartClicked (view: View){
- val message1 = numbers.toString()
- val iRestart = Intent(this, GameActivity::class.java).apply {
- putExtra("EXTRA_MESSAGE", message1);
- }
- if (iRestart.resolveActivity(packageManager) != null) {
- startActivity(iRestart)
- }
- }
Add Comment
Please, Sign In to add comment