I'm working on a Bluetooth background service for android. Is there a preferred way of communicating with such a service in Android? I can either obtain a reference to the service directly, or communicate via broadcastrecievers. If there is a 3rd way to do it, I'd be happy to look into that as well.
Asked
Active
Viewed 31 times
1 Answers
0
I think both ways are good. And a 3rd way is using AIDL which I think is not that easy. Take a look at this answer: https://stackoverflow.com/a/2463746/3265888
AIDL is basically android style IPC.

York Yang
- 527
- 7
- 13
-
This won't be any good since it's running in the same process as the app. Thanks though :) – Rob van Dijk Jun 22 '17 at 08:14