Q: Charles And, any activity can call the Service that "Hosts" these utilities ???
A:Erel : Other modules should call the class not the service.
------------------------------------------------------------
if the service Holds an instance of the class I need to fire up an instance of the service which should auto init the bluetooth work (Class) & "allow barcode scans" but where's the serial object get created ..?? in the activity or in this hosted class?
What's going on in the Service_Start?
Should the Service_Start reference its hosted class instance??
the Serial_Connected goes .. in the hosted class ??
Sub Service_Start (StartingIntent As Intent)
If blueService.IsInitialized Then blueService.Close ' In case the connection was broken and restarted
blueService.Initialize(clsTestObj.scanSerial.InputStream, clsTestObj.scanSerial.OutputStream, "blueService")
End Sub
Lastly whats happening in the serial_connected if success = true
Sub scanSerial_Connected (Success As Boolean)
ProgressDialogHide
Log("connected: " & Success)
If Success = False Then
Log(LastException.Message)
ToastMessageShow("Error connecting: " & LastException.Message, True)
Else
'''''StartService(AsyncScanSrv)
End If
End Sub