views:

31

answers:

0

I am developing an application which exchanges some data over Bluetooth (RFCOMM channel). The app will consist of few Activities that all need to be aware of exchanged data (e.g. receive it, parse it, update Activity's screen and send a response or even fire another activity based on received data). So my question is: what Android feature (e.g. Local Serivce, threads etc.) should I use to implement my app efficiently?

In other words, I'd like my Bluetooth communication functionality to be capable of sending events/messages (with data) to Activities that will handle those events and respond or launch other Activities. What also is, I guess, important here is the question how should I address multi-tasking issues here?