﻿B4A=true
Group=Default Group
ModulesStructureVersion=1
Type=Service
Version=5.02
@EndOfDesignText@
#Region Module Attributes
	#StartAtBoot: false
#End Region

Sub Process_Globals
	Dim lastintent As Intent	
End Sub

Sub Service_Create
End Sub

Sub Service_Start (StartingIntent As Intent)
	
Log(StartingIntent.Action)
Log(StartingIntent.ExtrasToString)
		
If ((lastintent <> StartingIntent) And (Main.bInitStock <> False)) Then
	lastintent = StartingIntent
	If StartingIntent.Action = "android.intent.action.DEFAULT" Then
		Dim barcode As String = StartingIntent.Getextra("com.motorolasolutions.emdk.datawedge.data_string")
    	CallSubDelayed2(Main,"ReadStockBarcode",barcode)
	End If
End If

End Sub

Sub Service_Destroy
End Sub

