Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,489 Members 45,169 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Android app and controller project

Tip us?
 
andrea07021981
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Jul 2014
Default [Q] Android app and controller project

Hi everyone,
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?

thanks

 
andrea07021981
Old
#2  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Jul 2014
anyone have any ideas?
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes