3

I am new in android and i want to know how to check programatically if there is an update of my app from play-store or other apps market place.

hrskrs
  • 4,447
  • 5
  • 38
  • 52
DOD
  • 31
  • 3
  • Best of use these https://github.com/rampo/UpdateChecker , https://github.com/winsontan520/Android-WVersionManager – Piyush Jun 02 '16 at 11:04

1 Answers1

0

If you have server deployed you can maintain the versionCode on them and check and compare it with your application on every launch. In case you have a static application you can refer to this post for solution Check Play Store App VersionCode

EDIT 1 If you need to get installed application version code and name

int versionCode = BuildConfig.VERSION_CODE;
String versionName = BuildConfig.VERSION_NAME;

Make a API call to your server get the latest released application version code. Compare both version code, If obtained version code is greater than installed version - redirect/ ask user to update application via PlayStore.

Community
  • 1
  • 1
Dexto
  • 1,151
  • 9
  • 18