Hi all -
I'm working on an application that will maintain a connection to a serial device. The communication is asynchronous, in that sometimes data will be received on the port that the application must react to. The serial connection must be accessed from each of my Activities for a different reason, and I'm trying to figure out if I should be using a Service for this?
All I really need is a single interface that runs behind my application so I can queue up an outgoing command from any Activity and have it sent out the port, whilst also being able to react to any incoming data an manage it (wake the proper activity, make a notification, etc.).
If not using a Service, what would be a better design pattern?