Hi, Im trying to display versionname using below code
PackageManager pkm = getPackageManager(); PackageInfo pki = pkm.getPackageInfo("com.example",PackageManager.GET_CONFIGURATIONS);
String tempCurrentVersion = pki.versionName;
Bt im getting exception at PackageManager.GET_CONFIGURATIONS as Name not found exception
Please tell me how i can solve this issue.
Thanks