Sub Service_Start (StartingIntent As Intent)
' check a string has been returned
If StartingIntent.HasExtra("barcode_string") Then
' get the scanned barcode
Dim sCode As String = StartingIntent.GetExtra("barcode_string")
Log(sCode)
' pass the scanned code back to the activity
CallSubDelayed2(ActivityName, "SubName", sCode)
End If
End Sub