问题
I'm developing an application for Android 2.2 and LG Black devices. When I run the application on my LG device I get the following SocketException, which is never happen on other devices!
Broken pipe
java.net.SocketException: Broken pipe
at org.apache.harmony.luni.platform.OSNetworkSystem.writeSocketImpl(Native Method)
at org.apache.harmony.luni.platform.OSNetworkSystem.write(OSNetworkSystem.java:723)
at org.apache.harmony.luni.net.PlainSocketImpl.write(PlainSocketImpl.java:578)
at org.apache.harmony.luni.net.SocketOutputStream.write(SocketOutputStream.java:59)
How It can be solved? Thanks.
回答1:
your side-A the other end-B
when A getting data from B,B closed->SocketException: Broken pipe
来源:https://stackoverflow.com/questions/5927481/android-java-net-socketexception-broken-pipe-lg