saunwin Active Member Licensed User Longtime User Jul 30, 2017 #1 "Calling Activity.Finish is not the correct way to close a Bluetooth connection." Can someone please tell me the correct way to close a BT connection ? My app runs ONCE, when it finishes BT will no longer work (with ANY app). I assume my app is leaving BT incorrectly ? TIA
"Calling Activity.Finish is not the correct way to close a Bluetooth connection." Can someone please tell me the correct way to close a BT connection ? My app runs ONCE, when it finishes BT will no longer work (with ANY app). I assume my app is leaving BT incorrectly ? TIA
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2017 #2 Serial.Disconnect + AStream.Close. As I wrote in the other thread, don't put communication related code in the activity. Move everything to a service (like the starter service). Upvote 0
Serial.Disconnect + AStream.Close. As I wrote in the other thread, don't put communication related code in the activity. Move everything to a service (like the starter service).