Sub Process_Globals
Public kvs As KeyValueStore
End Sub
'Called when an intent is received.
'Do not assume that anything else, including the starter service, has run before this method.
Private Sub Receiver_Receive (FirstTime As Boolean, StartingIntent As Intent)
If kvs.IsInitialized = False Then
kvs.Initialize(...)
End If
End Sub