Y yves67 Active Member Licensed User Longtime User Feb 21, 2017 #1 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
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 Feb 21, 2017 #2 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
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.
Y yves67 Active Member Licensed User Longtime User Feb 21, 2017 #3 OK, it's working sorry, I should have search better Thanks a lot Yves Upvote 0