Hi, After much deliberation over the issue and also after tweaking the code a lil' bit... I realised that moneytoo was correct and i'm not getting the InputStream. @moneytoo can u please tell me what could be done in this case??
Thanks and Regards, Prafull. On Mar 22, 10:11 am, madmax <madmax.1...@gmail.com> wrote: > I tried the InputStream.available() before reading from the device but > then it gave me the "Failed to Connect; [10051] A Socket Operation was > attempted to an unreachable network." exception.. I really cant > fathom what the problem could be!! Can you please give me pointers in > which direction i should proceed so as to actually find the "real" > problem?? > > Peace, > Praful. > > On Mar 17, 1:20 am, moneytoo <m...@seznam.cz> wrote: > > > > > 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.