Created
February 1, 2020 03:48
-
-
Save mukulchauhan10/0e4b96b40cdc8760a1591f57e3d32521 to your computer and use it in GitHub Desktop.
explicit1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.explicit1 | |
import androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import android.content.Intent | |
import kotlinx.android.synthetic.main.activity_main.* | |
class MainActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
btn.setOnClickListener { | |
val i = Intent(this, SecondActivity::class.java) | |
i.putExtra("fName", "Mukul") | |
i.putExtra("lName", "Chauhan") | |
i.putExtra("age", 21) | |
i.putExtra("gender", "Male") | |
startActivity(i) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment