I am trying to write a background service that retrieves data from the internet, transforms it and then sends it via Bluetooth. I have this working as an activity and want to convert it to a service.
I have looked at the tutorial and examples and created a small test case but my code has a main module and a service module and I expected only to have a service module. Is this the way to launch the service, from the activity, then once the service is launched can I kill the activity process ?
I guess I'm wondering if I can create a service only module, that has an app icon I can click on to launch, or is this not possible/recommended ?
I have looked at the tutorial and examples and created a small test case but my code has a main module and a service module and I expected only to have a service module. Is this the way to launch the service, from the activity, then once the service is launched can I kill the activity process ?
I guess I'm wondering if I can create a service only module, that has an app icon I can click on to launch, or is this not possible/recommended ?