Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim ph1 As Phone
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.
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim serialNo As String
serialNo = ph1.GetDeviceId
If FirstTime Then
Msgbox(serialNo, "Your Serial Number")
End If
ExitApplication
End Sub