I will show the Versionname of my app in a textview. have anyone an idea why this only changes if you reinstalled the app and not on an update?
String appversion = "Version " + context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName;
The reading works perfectly! My question was: I have an app with version 1.1 in the store. After an update to 1.2 the Textview still contains 1.1.(only on update) But if the app is reinstalled then 1.2 will be displayed. Why is that, and how can I fix it?