anybody know how to get the version name from manifest?
i did some googling and I found this
String app_ver = this.getPackageManager().getPackageInfo(this.getPackageName(), 0).versionName;
catch (NameNotFoundException e)
I added it in the java code main activity but getPackageManager doesn’t exist.
I wonder if getPackageManager is from the old versions.
I hope somebody can help me.