#Region Service Attributes
#StartAtBoot: False
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim PE As PhoneEvents
Dim PhoneId As PhoneId
End Sub
Sub Service_Create
PE.InitializeWithPhoneState("PE",PhoneId)
End Sub
Sub Service_Start (StartingIntent As Intent)
End Sub
Sub PE_PackageRemoved (Package As String, Intent As Intent)
Log("PackageRemoved: " & Package)
Log(Intent.ExtrasToString)
End Sub
Sub PE_PackageAdded (Package As String, Intent As Intent)
Log("PackageAdded: " & Package)
Log(Intent.ExtrasToString)
' set the installed boolean in sub main to true. so it can be checked on activity resume.
Main.installed=True
End Sub
Sub Service_Destroy
End Sub