Hi
I´m having a problem with setting up my bluetooth server om my mobile. I use a main class that calls on a thread to start a RFCOMM-service - and this works just as it should. The problem is that after the data is transfered, the connection closes, and the service dies. I want it to be available all the time (lets say I try to access the server from two devices simultaniously - I want them to be processed in a sequencial order).
Ive tried some solutions to this:
Placed the acceptAndOpen() into a loop, wich starts a new one after the connection is done. This doesnt work as far as I can see.
Closed the inputstream, and started a new one. No go here either.
Do I have to start a new thread insted? How does this work with queuing in bluetooth ?
Any input on this would be greatly appreciated![]()

Reply With Quote

