In this video you will learn how to create and open new activity in Android Studio.
As a first step we will create a layout for our first initial activity. We just need one button. Let's call that button "Open Second Activity".
Now we want to create second activity. As a layout for second activity just place one TextView with a text: "This is second activtiy" or whatever you want.
When you are done with layout files go to your mainActivity class and declare Button variable. Set onClickListener for that button and put in openSecondActivity() function inside onClick(). Note that we haven't yet created this function(openSecondActivity).
Last step is to create openSecondActivity method. Inside this method just create Intent as shown in video and call startActivity() method, again, just like shown in video.
--------------
Make sure you subscribe for more tutorials :)
En esta página del sitio puede ver el video en línea Android Studio - Open New Activity Tutorial (2018) de Duración hora minuto segunda en buena calidad , que subió el usuario Programming Hustle 01 septiembre 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 140 veces y le gustó 6 a los espectadores. Disfruta viendo!