Hello.
To get string versionName value of field inside <manifest> key, in AndroidManifest.xml file, I use this code:
function GetFileVersionName: string;
var
PackageManager: JPackageManager;
PackageInfo : JPackageInfo;
Begin
PackageManager:= SharedActivity.getPackageManager;
PackageInfo := PackageManager.getPackageInfo(SharedActivityContext.getPackageName, TJPackageManager.JavaClass.GET_ACTIVITIES);
Result := JStringToString(PackageInfo.versionName);
End;
If the filed is in a meta-data key, inside <activity> section, like this...
<meta-data android:name="productName" android:value="HelloWorld" />
how can change above code to retrive it?
Thanks.