• [ ]
        Intent(this, NextActivity::class.java).also { intent ->
            startActivity(intent)
        }
  • [ ]
        Intent(this, NextActivity::class.java).apply {
            put(EXTRA_NEXT, "some data")
        }.also { intent ->
            activityStart(intent)
        }
  • [x]
        Intent(this, NextActivity::class.java).apply {
            putExtra(EXTRA_NEXT, "some data")
        }.also { intent ->
            startActivity(intent)
        }
  • [ ]
        Intent(this, NextActivity::class.java).apply {
            put(EXTRA_NEXT, "some data")
        }.also { intent ->
            activityStart(intent)
        }

By Neha S

Leave a Reply

Your email address will not be published.