Android例子源码简单实现手机与电脑的UDP通讯

上传者: woshiyeeyihsow | 上传时间: 2019-12-21 21:56:22 | 文件大小: 1.44MB | 文件类型: zip
本项目是一个测试安卓和电脑UDP通讯的例子源码,项目自带一个winform的客户端,运行之前需要做两件事,第一件事是必须知道电脑的ip地址,如果是内网可以用cmd的ipconfig命令看一下电脑的ipv4地址,如果是模拟器的话那电脑的IP地址就是10.0.2.2,然后在安卓源码里面替换电脑IP,第二件事是打开项目里自带的exe点击开启端口监听,这样电脑和安卓客户端就可以使用UDP协议进行互发消息通讯了,本项目默认编译版本4.2.2.编码GBK。

文件下载

资源详情

[{"title":"( 55 个子文件 1.44MB ) Android例子源码简单实现手机与电脑的UDP通讯","children":[{"title":"Android例子源码简单实现手机与电脑的UDP通讯","children":[{"title":"QQ截图.png <span style='color:#111;'> 29.79KB </span>","children":null,"spread":false},{"title":"071706.jpg-javaapk.com.jpg <span style='color:#111;'> 12.23KB </span>","children":null,"spread":false},{"title":"本源码使用帮助.txt <span style='color:#111;'> 398B </span>","children":null,"spread":false},{"title":"目录列表.txt <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"电脑消息接收端.exe <span style='color:#111;'> 470.50KB </span>","children":null,"spread":false},{"title":"JstarUDP","children":[{"title":".project <span style='color:#111;'> 856B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"jstarudp","children":[{"title":"MainActivity.java <span style='color:#111;'> 4.67KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 954B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 8.02KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 332B </span>","children":null,"spread":false}],"spread":false},{"title":"menu","children":[{"title":"activity_main.xml <span style='color:#111;'> 257B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 788B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 13.25KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 221B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 695B </span>","children":null,"spread":false}],"spread":false},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 389B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"jstarudp","children":[{"title":"BuildConfig.java <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 376.65KB </span>","children":null,"spread":false}],"spread":false},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 54.44KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 25.73KB </span>","children":null,"spread":false},{"title":"JstarUDP.apk <span style='color:#111;'> 177.15KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"jstarudp","children":[{"title":"R$layout.class <span style='color:#111;'> 409B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 437B </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 349B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 413B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 346B </span>","children":null,"spread":false},{"title":"MainActivity$Client.class <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 494B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 643B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 476B </span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'> 973B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 403B </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"MainActivity$Server.class <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 954B </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-b19b809e7463f225551243aa427b3e76.jar <span style='color:#111;'> 146.26KB </span>","children":null,"spread":false},{"title":"android-support-v4-5091710b95cebde00d10e3f5291b2380.jar <span style='color:#111;'> 146.28KB </span>","children":null,"spread":false}],"spread":false},{"title":"jarlist.cache <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 6.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"crunch","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 6.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.85KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.85KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"classes.dex <span style='color:#111;'> 435.17KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"071706.png-javaapk.com.png <span style='color:#111;'> 79.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明