I am working on adding a release notes webView when our app is installed either for the very first time or when the app is being reinstalled. My question is on the second part where the user is installing the app on top of an existing one. I thought about deleting the release notes after it is installed but it's not possible to delete a file from assets at run time. Is there a way to determine this case?
How about saving the time when the release note was last shown in SharedPreferences
, and checking it against the app install time? On fresh install there will be nothing in SharedPreferences
, so you know you need to show the release note.
You can get the app install time this way: How to get app install time from android