'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim lbl As Label
Dim ph1 As Phone
End Sub
Sub Activity_Create(FirstTime As Boolean)
lbl.Initialize("lbl")
lbl.TextSize = 18
Dim now As Long
now = DateTime.Now
lbl.Text = DateTime.Date(now) & " - " & DateTime.Time(now)
Activity.AddView(lbl, 5dip, 10dip, 100%X - 5dip, 100%Y - 10dip)
Dim MyLan As ServerSocket
MyLan.Initialize(0, "")
MyLan.Listen
Dim p As Phone
myDevice = "Device/phone/Serial ID: " & p.GetSettings("android_id")
Dim myWifi As ABWifi
myWifi.ABLoadWifi()
mymac = "Mac Address: " & myWifi.ABGetCurrentWifiInfo().MacAddress
Dim Serial1 As Serial
Serial1.Initialize("serial1")
Dim BTName As String
BTName = "BTName: " & Serial1.Name
Dim pid As PhoneId
Dim IMEI As String
IMEI = "IMEI is: " & pid.GetDeviceId
'Msgbox("ipAdddress: " & MyLan.GetMyIP & CRLF & myDevice & CRLF & mymac & CRLF & BTName & CRLF & serialNo, "")
lbl.Text = lbl.Text & CRLF & CRLF & "ipAdddress: " & MyLan.GetMyIP & CRLF & myDevice & CRLF & mymac & CRLF & BTName & CRLF & IMEI
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub