I want to execute some code when android app is upgraded.
I read one way is to store the version info in shared preference/db and then compare on application onCreate and execute your logic. Does onCreate in Application run on upgrading? Android: How to reset FirstRun SharedPreferences when my app is updated?
But since the post dates back to 2013. Was just wondering if any new better ways have emerged out .
cheers, Saurav