'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 FirstTime=True Then
Broadcast.Initialize("Taxitronic")
'Service.StopAutomaticForeground 'Call this when the background task completes (if there is one)
Broadcast.addAction("Taxitronic.LastTripData.Response")
Broadcast.addAction("Taxitronic.InTripData.Response")
Broadcast.addAction("Taxitronic.InStopData.Response")
Broadcast.SetPriority(2147483647)
Broadcast.registerReceiver("Taxitronic.LastTripData.Response") 'here you can add the main action (intent)
Broadcast.registerReceiver("Taxitronic.InTripData.Response") 'here you can add the main action (intent)
Broadcast.registerReceiver("Taxitronic.InStopData.Response") 'here you can add the main action (intent)
End If
End Sub