Sometimes I'll write and save some code, Android Studio hot reloads my attached (Android) device, and the changes work as expected. However, if I stop the program on the phone or disconnect the device from Android Studio, the changes are not present--the program looks or works the way it did before I hot reloaded changes. It's as if the changes were in the phone's memory, but not saved as part of the APK on the device. ... Is this the expected behavior? (If so, what setting changes behavior so reloaded code is compiled and saved as part of the APK loaded on the attached phone device?)
I have Android Studio 3.5.3. I did see this post, but it's a few years old now, and I do see my changes; they're just not saved on the device.