I've recently been attempting to make an Android application to catch SMS when the phone receives it and send it to my computer via Bluetooth, and vice versa. I have some understanding of the SMS and Bluetooth components, however, linking everything together has proved completely infuriating, as there seems to be about six thousand ways to do the same thing in Java/Android and I can never be sure which one is right. I wonder if anyone here has an intuition for how I should structure my application.
The functionality is as follows.
As long as the phone is connected to a client (e.g. on a computer) via Bluetooth:
1. If SMS is received on the phone, it is sent to the computer via BT.
2. The client on the computer can "send SMS" via the phone, issuing a request over Bluetooth for the phone to send a given SMS message.
I want to have a GUI that can start and stop this service, but make the service otherwise independent of the GUI (i.e. you can close it freely after it's started).
I have code that sends/receives SMS and Bluetooth data, but I don't know how to tie it together — should one service encompass both, should they be started as separate services, how should they communicate between one another and the GUI, etc. Most tutorials I've found thus far have been less than helpful, as they just tell me how to write the code but not really how to use it.