I'm writing some code in my Android app that checks if the app has been updated from the Play Store and to force the user to do a fresh synchronize with the web back-end if it has.
My question is whether it's safe to assume that when an app gets updated from the Play Store, will it quit the running instance of that app, if it is running, and launch the default Activity when it's next launched?
And, if it's the same for:
Automatic updates in the background.
Manual update from the user using the Play Store app.
This is useful to know because if the app does quit after an update, I can put the code to check if the app has been updated in my default Activity and not have to check for this elsewhere throughout the app.
It's tricky to test this and I couldn't find much documentation around it so I think it would be useful to have this info out in the wild for others.
Thanks!