Answers for "start activity through intent kotlin"

3

start new activity kotlin

val intent = Intent(this, NextActivity::class.java)
// To pass any data to next activity
intent.putExtra("keyIdentifier", value)
// start your next activity
startActivity(intent)
Posted by: Guest on March-03-2021
0

start activity intent

Intent myIntent = new Intent(CurrentActivity.this, NextActivity.class);
myIntent.putExtra("key", value); //Optional parameters
CurrentActivity.this.startActivity(myIntent);
Posted by: Guest on November-02-2021

Code answers related to "start activity through intent kotlin"

Browse Popular Code Answers by Language