Android Question detecting first launch of updated app?

Dave O

Active Member
Licensed User
Hi all,

When I update my app with new features (e.g. change the versionCode), I'd like to auto-show a "what's new" dialog, so the user can see what's changed.

Does Android (or B4A) have any way of detecting the first launch of an updated app, or do I need to store my own flag somewhere and do the checking in Activity_Create?

Just wondering if I need to roll my own code or if there's a standard way of doing this?

Thanks!
 

Troberg

Well-Known Member
Licensed User
Something like (pseudocode):

B4X:
If Version_Written_To_File <> CurrentVersion
  DoVersionUpdateStuff()
  WriteCurrentVersionToFile()
End If
 
Top