I'm noob android developer and I am writing to ask for advice on a project i'working on.
In detail I have an Android device and an extern controller. I have to create an app that communicates (transmit and receive) via bluetooth connection with the controller (the communication protocol is already defined). What is the best way to handle the data received from the external card? I mean, I was going to create a class Comunication that admin messages with controller, send and recive. I would like to save the received packet in a different class (or even the same, I do not know what is the best way) that is always accessible by all the activities of the app. Moreover, these activities must be able to send requests through the class Comunication to the controller. Do you have any idea on how I can do? The problem is that I do not know how to create the structure of an app like that. Any idea?