Have been converting one 2 apps to use a service and have a couple of questions:-
1) can an activity start multiple services ?
2) if yes to (1), can the variables be shared amongst the services, or only between a service and the parent app ?
3) can I start multiple copies of the same service but pass a parameter to make them access a different resource. e.g. I want to have a Bluetooth connection to 4 identical devices. So can I start a service and pass it a pointer that simply indicates which device (1-4) to talk to ?
4) if I can do (3), can I have a table shared amongst the parent app and all 4 services e.g. strData(1 to 4) so that activity app can access all the data in 1 table ?
I am liking services, even more if the answer to the above is yes,yes,yes.yes !
thanks
1) can an activity start multiple services ?
2) if yes to (1), can the variables be shared amongst the services, or only between a service and the parent app ?
3) can I start multiple copies of the same service but pass a parameter to make them access a different resource. e.g. I want to have a Bluetooth connection to 4 identical devices. So can I start a service and pass it a pointer that simply indicates which device (1-4) to talk to ?
4) if I can do (3), can I have a table shared amongst the parent app and all 4 services e.g. strData(1 to 4) so that activity app can access all the data in 1 table ?
I am liking services, even more if the answer to the above is yes,yes,yes.yes !
thanks