iOS Question GetVersionName

Filippo

Expert
Licensed User
Try this, I did it by Erel.

B4X:
Public Sub GetVersion As String
   Dim no As NativeObject
   no = no.Initialize("NSBundle").RunMethod("mainBundle", Null)
   Dim name As Object = no.RunMethod("objectForInfoDictionaryKey:", Array("CFBundleShortVersionString"))
   Return name
End Sub
 
Top