20 lines
544 B
Kotlin
20 lines
544 B
Kotlin
package com.example.myapp1
|
|
|
|
import android.content.Intent
|
|
import androidx.appcompat.app.AppCompatActivity
|
|
import android.os.Bundle
|
|
import android.widget.TextView
|
|
|
|
class SecretActivity : AppCompatActivity() {
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
super.onCreate(savedInstanceState)
|
|
setContentView(R.layout.activity_secret)
|
|
|
|
var intent = intent
|
|
val name = intent.getStringExtra("Name")
|
|
|
|
val resultTv = findViewById<TextView>(R.id.resultTv)
|
|
|
|
resultTv.text = "Name " + name
|
|
}
|
|
} |