Android Question Version Msgbox

bryantm1122

Member
Licensed User
Hello,

I've made a Menu item called About, which when clicked, pops up a MsgBox with my build number and copyright info. Right now, I'm updating the MsgBox string in Sub About_Click on each build. Is there a way to pull the version number from the #VersionName in Project Attributes into the MsgBox?
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
log(Application.VersionName)
log(Application.VersionCode)
 
Upvote 0

bryantm1122

Member
Licensed User
Thanks DonManfred!

I tried this:
B4X:
MsgBox(Application.VersionName & " Beta" & CRLF & CRLF & "copyright info", "App Name")
and my app crashes when I click OK on the MsgBox. Everything displays properly. Any ideas?

Update: Also tried assigning Application.VersionName to a string variable. Still crashing.

Update 2: Problem with emulator. Working on real device.
 
Last edited:
Upvote 0

bryantm1122

Member
Licensed User
Learn to write HELPFUL request in forum!

Saying your app crashes does NOT HELP if you DONT post the full errormessage from the logs

Create a small example which shows the problem and export as zip and upload it here...

Understood. I ran again on emulator to get logs, but app didn't crash this time. Must have been a gremlin. If it happens again, I'll post logs. Thanks!
 
Upvote 0
Top