Hello,I have bug. Can you help me ? /Kotlin/ Thank...
# android
j
Hello,I have bug. Can you help me ? /Kotlin/ Thanks http://www.hatebin.com/gycgffclfg http://www.hatebin.com/hzfcwwyufq
m
Hi. What are you trying to accomplish with
val intent = Intent(this@RegisterActivity, User::class.java)
.
j
Run the registerUser activity, but I've already fixed it but it's writing a bug
m
in that case RegisterActivity::class.java should be the second argument. The first one is just a context.
j
It is correct ? registerUser.setOnClickListener { val = Intent Intent (context, RegisterActivity :: class.java) startActivity (intent)
c
What activity are you trying to start? You have to put the class of that Activity as the second parameter, not the the current activity
j
I tried to run registerUser registration with verification
c
Not sure what that means
j
registerUser is a user registration
c
Okay
d
are you sure your ‘User’ is a activity?cause its a cast error