Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private Label1 As Label
Private Label2 As Label
Private Label3 As Label
Private Label4 As Label
Private Label5 As Label
Private Label6 As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("1")
Dim checkphone As PhoneValidate
checkphone.Initialize("1-888-322-1122","Fe5pwHzYKdmshHMC2Kq7NUIN0X3Ap1J54u4jsn62nFgdNmBJX9", Me, "check_valid")
checkphone.
End Sub
Sub check_valid(valore As typeLevel)
Log("Error: " & valore.error)
Label1.Text = "Error: " & valore.error
Log("Valid: " & valore.valid )
Label2.Text = "Valid: " & valore.valid
Log("Location: " & valore.location)
Label3.Text = "Location: " & valore.location
Log("Country Code: " & valore.country_code)
Label4.Text = "Country Code: " & valore.country_code
Log("Is mobile: " & valore.Is_Mobile)
Label5.Text = "Is mobile: " & valore.Is_Mobile
Log("Local Number: " & valore.local_number )
Label6.Text = "Local Number: " & valore.local_number
Log("Type Phone: " & valore.TypePhone )
End Sub