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?
Asked
Active
Viewed 1,935 times
1
-
What do you mean by "reinstalled"? - Do you mean the already installed App is updated? – JimmyB Jan 16 '12 at 18:49
-
by reinstalled i mean update..the app was already installed and I am installing a newer apk on top – user1082187 Jan 16 '12 at 19:50
2 Answers
1
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
0
You can use SharedPreferences, regular File IO, or an SQLite DB in your app to store persistent information, e.g. a flag indicating if the current release notes have already been displayed or not. This data will "survive" an update of your App.
These data will, however, be deleted when the App is uninstalled from the phone, but I guess that's not a problem in your case.

JimmyB
- 12,101
- 2
- 28
- 44
-
I want the release notes to show up on the first launch after a fresh install or an update. I believe setting the shredpreferences value will not bring up the release notes (first launch) after the update or I am missing your point? – user1082187 Jan 16 '12 at 19:37
-
Emphasis is on *current* release notes :) You don't need install time or the like. Just say, you update your app with v2.3 and upon the first start of the new version you find your app previously stored "LastChangeNoteVersion=V1.9"; you'll show the notes in this case and update the persistent value "LastChangeNoteVersion" or whatever. – JimmyB Jan 17 '12 at 15:06