借鉴自:https://blog.csdn.net/yuyu414/article/details/18995727
借鉴中的文章已将接收与发送方法介绍得非常详细
服务器端
用的是借鉴当中打包好的socket服务器
服务器IP地址填写本机IPV4地址,控制台cmd中输入命令行ipconfig即可查看
服务器端口号可自行编辑
客户端
在eclipse中新建一个Android Application Project
添加网络权限:
<uses-permission android:name="android.permission.INTERNET" />
在xml布局中添加两个EditText,一个button按钮
<EditText
android:id="@+id/editServerIP"
android:layout_width="fill_parent"
and