Hello,

I was wondering if anyone would explain to me why the code snippet
below does not work:

                        s.getOutputStream().write(length);
                        s.getOutputStream().write(data);

                        Log.i(TAG, "data from socket -
"+Integer.toString(s.getInputStream().read()));

In my application, the code is surrounded by try/catch. It does not
generate an exception.

s is an instantiation of LocalSocket.

The code does not work because the attempt to read data from the
socket never completes, i.e. no data is ever returned from the socket
(via the Log.i statement).

I would appreciate it if anyone could help me understand if and where
I made a mistake.

Thanks.

Alex Donnini
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to