Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.holajoaco
- import androidx.appcompat.app.AppCompatActivity
- import android.os.Bundle
- import android.widget.TextView
- class WelcomeToTheJungle : AppCompatActivity() {
- private lateinit var welcomeText: TextView
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- setContentView(R.layout.activity_welcome_to_the_jungle)
- welcomeText = findViewById(R.id.welcomeMessage)
- val bundle = intent.extras
- val welcomeName = bundle?.getString(USER_NAME)
- welcomeText.text = "Welcome ${welcomeName}"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement