Hi!
The app I'm building is basicly an "alarm" if you will. A Lego Mindstorms NXT-unit will send a message to the target smartphone (I'm thinking a simple bool will suffice). Once the phone receives the message it will dial the first number in a list. If there's a "busy signal" it will continue with the next number and when the list is exhausted there will be an "Alarm Failed" message.
Most of the samples I keep stumbling upon on Google deals with stuff happening once there's been a connection. What classes and methods should I use if I want something to occur if data is being sent between the two devices? And, remember, this is not a straight forward communication between two phones, there's a non-android unit involved too.
The app I'm building is basicly an "alarm" if you will. A Lego Mindstorms NXT-unit will send a message to the target smartphone (I'm thinking a simple bool will suffice). Once the phone receives the message it will dial the first number in a list. If there's a "busy signal" it will continue with the next number and when the list is exhausted there will be an "Alarm Failed" message.
Most of the samples I keep stumbling upon on Google deals with stuff happening once there's been a connection. What classes and methods should I use if I want something to occur if data is being sent between the two devices? And, remember, this is not a straight forward communication between two phones, there's a non-android unit involved too.