Try checking InputStream.available() before reading. On Mar 15, 12:13 pm, Praful Sanas <madmax.1...@gmail.com> wrote: > Hey guys, > I'm having problems during the "read" call of the > InputStream. The call gives me a "IOException: Software Caused Abort" > exception. I'm able to get the BluetoothSocket and also the able to > "connect" to the device. My app. is in the client mode and sends in a "x" > byte "command" to the device which is then supposed to send me a "response". > The expected "response" is also of "x" bytes. This is where the error > arises.. While reading the "response" i'm getting the above mentioned error. > Can anyone help me and tell me what i'm doing wrong? > Thanks. > > Peace, > Prafull.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en