Hi
I try to do Bluetooth communication in a own class for future use. As example i use the BluetoothChat
When i export all the enable and permission stuff in a class, it dont work.
I have created a small example only with Bluetooth turn on. In the B4XMainPage, the code work, but in the BTenable class it dont. (same code)
What i do wrong?
Choice between BTen.StartBluetooth or StartBluetooth.
I try to do Bluetooth communication in a own class for future use. As example i use the BluetoothChat
When i export all the enable and permission stuff in a class, it dont work.
I have created a small example only with Bluetooth turn on. In the B4XMainPage, the code work, but in the BTenable class it dont. (same code)
What i do wrong?
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
BTen.StartBluetooth ' NOT WORK
' StartBluetooth ' WORK
End Sub
Attachments
Last edited: