A Asim A Baki Active Member Licensed User Longtime User Jan 6, 2018 #1 I've followed the tutorial from Erel regarding the auto version number in compile time but how to store Auto version in the package as VersionCode? because I have dotnet application which reads the manifest from the APK and check the version number before sending it for device for smart update
I've followed the tutorial from Erel regarding the auto version number in compile time but how to store Auto version in the package as VersionCode? because I have dotnet application which reads the manifest from the APK and check the version number before sending it for device for smart update
Erel B4X founder Staff member Licensed User Longtime User Jan 7, 2018 #2 You can write a B4J non-ui program that reads the generated AndroidManifest.xml and writes it back with the updated version. You can read it with Xml2Map, make the change and then write it back with Map2Xml: https://www.b4x.com/android/forum/t...ple-way-to-parse-xml-documents.74848/#content Upvote 0
You can write a B4J non-ui program that reads the generated AndroidManifest.xml and writes it back with the updated version. You can read it with Xml2Map, make the change and then write it back with Map2Xml: https://www.b4x.com/android/forum/t...ple-way-to-parse-xml-documents.74848/#content
A Asim A Baki Active Member Licensed User Longtime User Jan 7, 2018 #3 Erel said: You can write a B4J non-ui program that reads the generated AndroidManifest.xml and writes it back with the updated version. You can read it with Xml2Map, make the change and then write it back with Map2Xml: https://www.b4x.com/android/forum/t...ple-way-to-parse-xml-documents.74848/#content Click to expand... could this application be executed automatically after building B4A project? Upvote 0
Erel said: You can write a B4J non-ui program that reads the generated AndroidManifest.xml and writes it back with the updated version. You can read it with Xml2Map, make the change and then write it back with Map2Xml: https://www.b4x.com/android/forum/t...ple-way-to-parse-xml-documents.74848/#content Click to expand... could this application be executed automatically after building B4A project?
Erel B4X founder Staff member Licensed User Longtime User Jan 7, 2018 #4 No. It should be executed with a #CustomBuildAction. You cannot modify the manifest file after compilation. Upvote 0
No. It should be executed with a #CustomBuildAction. You cannot modify the manifest file after compilation.