Advertisement
Guest User

Untitled

a guest
May 10th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1.  
  2. import android.support.v7.app.AppCompatActivity
  3. import android.os.Bundle
  4. import kotlinx.android.synthetic.main.activity_page3.*
  5.  
  6. class Page3 : AppCompatActivity() {
  7.  
  8. var username: String? = null
  9. var password: String? = null
  10.  
  11. override fun onCreate(savedInstanceState: Bundle?) {
  12. super.onCreate(savedInstanceState)
  13. setContentView(R.layout.activity_page3)
  14.  
  15. ambilData()
  16. }
  17.  
  18.  
  19. private fun ambilData(){
  20. val bundle : Bundle? = intent.extras
  21.  
  22. username = bundle?.getString("Username")
  23. password = bundle?.getString("Password")
  24.  
  25. txtHello.text= username
  26.  
  27.  
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement