Android Question Way to read B4A compiler version number inside app

Turbo3

Active Member
Licensed User
Longtime User
Is there a way to read the B4A version number from within the app? I would like to add that information to my debug log. For example the current version is 6.5.
 

Cableguy

Expert
Licensed User
Longtime User
The version number can be retrieved from the ini file. You can find that file under the application folder (appfolder)...
Something like user/AppData/roaming/b4android
 
Upvote 0

Turbo3

Active Member
Licensed User
Longtime User
Perhaps you misunderstood. My app running on an Android device needs to be able to read the version number the app was compiled with.

What you provided seems to be a path on a Windows machine the app was compiled on.

When I look at the raw source file I see at the top a variable on the second line of "Version=6.5" I thought I could just access that from within the running app but it is not accessible at compile time to include in the binary.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
you will have to hardcode it then
 
Upvote 0

Turbo3

Active Member
Licensed User
Longtime User
I don't want to have to go around to each app and update it just because Erel releases a new compiler version. It should be automatic so next time I compile it gets updated. There is a version variable at the top of the source so why not make it available at compile time? Seems like an easy change. There is already a variable that tells the code if the B4i or B4A compiler is being used that can switch in different code based on the compiler.
 
Upvote 0
Top