T Turbo3 Active Member Licensed User Longtime User Dec 21, 2016 #1 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.
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 Dec 21, 2016 #2 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
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
T Turbo3 Active Member Licensed User Longtime User Dec 21, 2016 #3 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
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.
Cableguy Expert Licensed User Longtime User Dec 21, 2016 #4 you will have to hardcode it then Upvote 0
T Turbo3 Active Member Licensed User Longtime User Dec 21, 2016 #5 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
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.
Erel B4X founder Staff member Licensed User Longtime User Dec 22, 2016 #6 The IDE version is not included in the APK. You can use a solution similar to this one: https://www.b4x.com/android/forum/t...d-auto-increment-build-version.64183/#content To read the project file and retrieve the version. Upvote 0
The IDE version is not included in the APK. You can use a solution similar to this one: https://www.b4x.com/android/forum/t...d-auto-increment-build-version.64183/#content To read the project file and retrieve the version.