菜鸟!问个问题关于socket通信 端口是对的,我只想知道Android端用什么样的方法可以接收,比如Datainputstream.... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 InputStream inputStream = socket.getInputStream();从inputStream 里面不停的读取数据就可以了 reciveBuffer = new byte[1024]; int a = inputStream.read(reciveBuffer);// inputStream.r if(a !=-1 && mMessageCache.get(this.tcpID)!=null){ byte []reciveB = new byte [a]; System.arraycopy(reciveBuffer, 0, reciveB, 0, a);} scrollview 滚动条监听 android socket 为空 求教从图片上获取文字 请教一个问题 soundPool 音量很小 开发安卓程序怎么用 phonegap 做到 连接网站内容 Launcher研究之桌面文件夹美化 关于linux usb设备名称 如何在代码中使用ping命令测试网络通不通啊? 初学者——求救啊 android uvc camera上的按钮无响应求助 android客户端与服务器端交互的方式 大哥大姐刚自学遇到点小问题请教谢谢了
int a = inputStream.read(reciveBuffer);
// inputStream.r
if(a !=-1 && mMessageCache.get(this.tcpID)!=null){
byte []reciveB = new byte [a];
System.arraycopy(reciveBuffer, 0, reciveB, 0, a);
}