i want to control my phone using an external bluetooth-device with SPP (RFCOMM). so i took the BluetoothChat-Example and adopted the read-part to handle my commands sent by the external device. when i use the external device, it powers up, establishes a connection, sends the command and turns off again. the app is also working when running in the background. so everything works fine so far ..
the two problem i still have are:
a) if i switch-off and on bluetooth on the phone, it will no longer listen to incoming connections from the external device. i have to start the app again to make it work.
b) closing the app is also ok, the thing still works. but when i kill all processes, the app is also closed and will not work longer. is there a possibility, to relaunch the app automatically?
thanks!
PS: i am an android beginner.