On Wed, Dec 7, 2011 at 6:01 AM, Vincent <[email protected]> wrote: > Thanks a lot for your reply. > > I am also thinking about doing this in a asynchronous way. > > However, I'm quite new to Android (about two weeks) and the only Bluetooth > sample I've seen is the official BluetoothChat application. > So if possible could you give me a little bit more detailed guide (directly > or links)? > > I want to send a command to a device, then receive data from it, then send > another command... > but the only way I can think is the BluetoothChat way :( >
You can do it just as I said, split your code up and move what you *would* put in the loop on the handler, do you want to have a try coding some of it and post what you get, then we can tell you what you're doing wrong / right? kris -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

