iOS Question [Solved] Name of the IPAD

yves67

Active Member
Licensed User
Longtime User
Hello
With an IPAD :
with "Réglages", then "Informations" there is the name of the Ipad

Is it possible, from a B4I program, to get this name ?

Thanks for any help

Yves
 

klaus

Expert
Licensed User
Longtime User
You can use this:
B4X:
Sub GetVendorIdentifier As String
    Dim no As NativeObject
    no = no.Initialize("UIDevice").RunMethod("currentDevice", Null)
    Dim id As Object = no.GetField("name")   
    Return id
End Sub
Code from HERE.
Found it searching for B4i device name.
 
Upvote 0
Top