-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathP13_b.kt
30 lines (24 loc) · 970 Bytes
/
P13_b.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.example.myapplication
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
class IntentDisplay : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_intent_display)
var res = findViewById<TextView>(R.id.res)
var t1 = intent.getStringExtra("name")
var t2 = intent.getStringExtra("pass")
var t3 = intent.getStringExtra("email")
var t4 = intent.getStringExtra("date")
var t5 = intent.getStringExtra("phone")
var option = intent.getStringExtra("course")
res.text = " Entered Values are : \n " +
"Name : ${t1} \n" +
"Password : ${t2} \n" +
"Email : ${t3} \n" +
"Date : ${t4} \n" +
"Phone No. : ${t5} \n " +
"Course : ${option}"
}
}