val intent = Intent(this, CLASS::class.java)
        intent.putExtra("Text", Text)
        intent.putExtra("Text2", Text2)
        startActivity(intent)

      Kotlin language logo
      Put extra

      Kotlin recipes

      The code creates an Intent instance, which provides information about the intent. It then sets two extra values for the Intent. These values are passed to the startActivity() method.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.