android: java.net.SocketException: Broken pipe LG

狂风中的少年 提交于 2020-01-16 18:18:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!