Suppose I have APK the I installed it, then I modified something in this APK and replace (re-install) it (without changing version)? I want to get that replace event. Is that even possible?
Because I’m using SharedPreferences in order to do something only at first time launch of the application, now if I replace the App this SharedPreferences is not reseted (I need to con side replacing the App as first time launch). Any ideas?
you could store some sort of flag or even the preferences themselves in the data/ directory on the user’s device.
Then, when you start the app, if this data exists you know that the app has been there before regardless of version.