Hello,
Is there a facility for conditional compilation in B4A?
I have Free and Plus versions of an application. The two versions are identical – the only difference being a Boolean variable that I set to true or false.
I would also like to use a different application icon (version code/string, name, package name) for each version, but I believe this is set at compile time.
In C or Delphi this could be handled with conditional compilation. Does B4A have anything similar?
To change the icon conditionally it looks like the statement from the manifest, android:icon="@drawable/icon", would ultimately need to be modified depending on the conditional statement.
Thanks,
Barry.
Is there a facility for conditional compilation in B4A?
I have Free and Plus versions of an application. The two versions are identical – the only difference being a Boolean variable that I set to true or false.
I would also like to use a different application icon (version code/string, name, package name) for each version, but I believe this is set at compile time.
In C or Delphi this could be handled with conditional compilation. Does B4A have anything similar?
To change the icon conditionally it looks like the statement from the manifest, android:icon="@drawable/icon", would ultimately need to be modified depending on the conditional statement.
Thanks,
Barry.
Last edited: