From the course: Android Studio Essential Training 2020

Unlock the full course today

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

Apply changes to running apps

Apply changes to running apps

From the course: Android Studio Essential Training 2020

Start my 1-month free trial

Apply changes to running apps

- [Instructor] Android Studio has a feature that allows you to update an app that's already running on a device, without restarting the app, in certain circumstances. To demonstrate this, I'll create a new Android Studio project, and I'll base it on the Basic Activity template. If you simply change a literal string, or a little bit of code, in many cases you can apply those changes. I'm going to run this application, and show that when I click on the floating action button in the lower corner of the app, I see a message displayed. It's called a snackbar message. And right now it's just the text, Replace with your own action. Now, in my code, I'll change this literal text to The real message. On the toolbar there are three buttons for launching the new code. Run app means restart the entire application. Apply Changes and Restart Activity does a little bit less work. It doesn't restart the entire application…

Contents