I want get the iOS device IMEI, MAC, telnum
search in the forum
I found this code
but I copy it to Sub Application_Start,log error like picture
search in the forum
I found this code
B4X:
Dim device As NativeObject
device = device.Initialize("UIDevice").RunMethod("currentDevice", null)
Log(device.GetField("name").AsString)
Log(device.GetField("model").AsString)
Log(device.GetField("systemName").AsString)
B4X:
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.LoadLayout("1")
NavControl.ShowPage(Page1)
Dim Device As NativeObject
Device = Device.Initialize("UIDevice").RunMethod("currentDevice", Null)
Log(Device.GetField("name").AsString)
Log(Device.GetField("model").AsString)
Log(Device.GetField("systemName").AsString)
end sub