Answers for "kotlin open new activity"

2

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
10

intent android open activity

Intent intent = new Intent(this, DisplayMessageActivity.class);
        intent.putExtra(key:,value:);
        startActivity(intent);
Posted by: Guest on May-19-2020
0

navigate to another activity in android

OnClickListener onClickListener = new OnClickListener() {
    @Override
    public void onClick(View v) {
        startActivity(new Intent(action));
    }
};

Button button = (Button) findViewById(id);
button.setOnClickListener(onClickListener);
Posted by: Guest on July-13-2020

Code answers related to "kotlin open new activity"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language