How to start a new Activity in Kotlin android?

How to start a new Activity in Kotlin android?

After an official announcement of google about supporting Kotlin as the official android programming language, most of developer having troubles specially whoever very familier with Java version of android face some difficulties during the developement of Android.

Here is the simple example about how to call new activity in Kotlin android.

val intent= Intent(this, NewActivity::class.java)
startActivity(activityIntent)

Leave a Reply

Your email address will not be published.

four × four =