'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 GetIP_Address As String
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
GetIP_Address = "0.0.0.0"
Get_IPAddress
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Get_IPAddress
Dim Id As InputDialog
Id.InputType = Id.INPUT_TYPE_Phone
Id.Input = ""
Id.Hint = "Enter IP Address"
Id.HintColor = Colors.Blue
ret = DialogResponse.CANCEL
ret = Id.Show("Input IP Address (IPv4 only)", "Site Info", "Accept", "Cancel", "", Null)
If ret = -1 Then
GetIP_Address = id.Input
End If
End Sub