Hi Johan and Werner
I think the Service1 module does not start at all. I've tried everything you suggested but I'm still not getting anything. Now I also added a Log in B4XMainPage to see if something will show and, alas! I could see the logs. Below are the logs that I added:
Private Sub CheckBox_Select_Scan_Mode_ValueChanged (Value As Boolean)
If CheckBox_Select_Scan_Mode.Value = True Then
service1.Barcode_Mode_Seletion = "Vehicle"
Barcode_Scann_Mode.Text = "Scan Vehicle Data"
'Test log
Log("XXXXXXXXXXXX Vehicle " & Barcode_Scann_Mode.Text)
Else
service1.Barcode_Mode_Seletion = "Driver"
Barcode_Scann_Mode.Text = "Scan Driver Data"
'Test log
Log("XXXXXXXXXXXX Driver " & Barcode_Scann_Mode.Text )
End If
End Sub
From this I was able to see the following in the log, as I toggle between Driver and Vehicle selection on my hand held device:
running waiting messages (1)
** Activity (main) Resume **
*** mainpage: B4XPage_Appear [mainpage]
Activity_Resume
----------------------------------------------
PROXIMITY_SensorChanged 1
XXXXXXXXXXXX Vehicle Scan Vehicle Data
XXXXXXXXXXXX Driver Scan Driver Data
XXXXXXXXXXXX Vehicle Scan Vehicle Data
XXXXXXXXXXXX Driver Scan Driver Data
XXXXXXXXXXXX Vehicle Scan Vehicle Data
XXXXXXXXXXXX Driver Scan Driver Data
XXXXXXXXXXXX Vehicle Scan Vehicle Data
XXXXXXXXXXXX Driver Scan Driver Data
XXXXXXXXXXXX Vehicle Scan Vehicle Data
XXXXXXXXXXXX Driver Scan Driver Data
Somehow, the scanner can communicate with the app because I'm using it to toggle between "Scan Vehicle Data" and "Scan Driver Data".
What triggers the Service1 module to start?