VersionString from Installed Packages

Hey guys, I'm making an App Store for my company (like Google Play Store - only for the company's apps). Now I need to know how to get the VersionString of an installed Android App (maybe by package name?). Can anybody help me? Thanks

Tagged:

Posts

  • found a solution.. made an Interface in the PCL , and this Implemenatation in the Android Project:

    Context context = MainActivity.Instance;
    PackageInfo info = context.PackageManager.GetPackageInfo("com.packageName", Android.Content.PM.PackageInfoFlags.Activities);
    currentVersion = info.VersionName;

    ..works for me

Sign In or Register to comment.