Get Device info

ykucuk

Well-Known Member
Licensed User
Longtime User
is there any functions for get device serial number, sim number, owner name and default email address?
 

gjoisa

Active Member
Licensed User
Longtime User
use phone library .
Check Phone library in Library tab in down side of property bar .
Code like this :
B4X:
dim imei as int
dim pid as PhoneId
imei = pid.GetDeviceId
 
Upvote 0

ykucuk

Well-Known Member
Licensed User
Longtime User
thank you for reply

but if it is tablet and no telephone functions how can i get device serial number
 
Upvote 0

pluton

Active Member
Licensed User
Longtime User
Like this:

B4X:
Dim pid As PhoneId
Dim pserial As Phone

   Msgbox("Serial ID is: " &pserial.GetSettings("android_id") &CRLF& "IMEI is: " &pid.GetDeviceId,"Hello")

 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…