From the course: Android Studio Essential Training

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Apply changes to running apps

Apply changes to running apps

- [Instructor] As your Android Studio projects get larger and more complex, recompiling and building them takes longer. Android Studio has a great tool that lets you apply little changes to your project while you're running them on a device, either virtual or physical. To demonstrate this, I'm going to create a new project and I'm going to base it on the basic activity template. The language is Kotlin and the minimum SDK is API 21. And I'll just name this Basic App. Now I'm going to run this on a virtual device, and I'm using a virtual device that mimics the Pixel 3A, or API 30. When the app first opened, it displays a fragment which has a text value saying "hello, first fragment." Now let's look at the code that's making that happen. I'll go to my first fragment.kt file. And then, I'm going to Control or Command click on the binding for this XML layout and then look at this in code. And I see that there's a text view here…

Contents