From the course: Programming for Non-Programmers: Android & Kotlin

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Working with variables

Working with variables

From the course: Programming for Non-Programmers: Android & Kotlin

Start my 1-month free trial

Working with variables

- [Narrator] For those of you using the exercise files, you way notice a pop-up that says that the file that is on my computer doesn't exist on your computer. You can simply click through that and ignore it for this movie and for the rest of the course and you'll be fine. Now lets get some practice creating some variables. The file that I'm working in is MainActivity.kt and I have activity_main.xml opened though we're not going to be using it in this particular movie. With both of those files open, I can actually collapse the project window. I can do that by clicking on the project window tab on the left side, or I can click this little collapse button right here that hides the project window. For those of you following along without the exercise files, just create a new Android Studio project with the settings we looked at in a previous movie. So we just have an empty activity here and Kotlin support. I mentioned earlier that code runs top to bottom, and that its governed by events…

Contents