How to open a new activity in Android Studio (Kotlin 2020)

preview_player
Показать описание
In this short video I'll be showing you how to open/start a new activity in Android Studio.
​​​​
Рекомендации по теме
Комментарии
Автор

You are the most straightforward explaining this. Thank you.

SergioRamirezar
Автор

you can also one-liner it instead of declaring "val intent" by simply using the line: startActivity(Intent(this, Main2Activity::class.java))

MrJasonSnell
Автор

Do you have a video how can i do this if im selecting a spinner item, to open a new activity?

BURAXON
Автор

Hi,
I am getting this error:
None of the following functions can be called with the arguments supplied.
<init>(Context!, Class<*>!) defined in android.content.Intent
<init>(String!, Uri!) defined in android.content.Intent

Leksky
Автор

and how about from fragment to activity

maaloumat