Detect if new install or updated version (Android app) -



Detect if new install or updated version (Android app) -

i have app on play store. want set requirement if users want utilize part of app, have invite friend before beingness able so. want impose restriction new installs of app (to fair users have installed app before restriction). sorry long intro, question how can find out if current device has updated app or new install?

check if old version of app saves info on disk or preferences. info must safe, i.e. cannot deleted user (i'm not sure it's possible).

when new version freshly installed, info won't exist. if new version upgrade old version, info exist.

worst case scenario, old user flagged new 1 , have restricted usage.

android

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -