登录
首页 » Java » 基于UDP的手机与电脑互相通信实例

基于UDP的手机与电脑互相通信实例

于 2020-06-25 发布 文件大小:3550KB
0 209
下载积分: 1 下载次数: 0

代码说明:

  本例为java代码,在android系统实现手机与电脑通过udp方式通讯(This example is java code, in Android system to achieve mobile phone and computer through UDP communication)

文件列表:

TestClient, 0 , 2015-11-05
TestClient\.classpath, 475 , 2015-11-04
TestClient\.project, 846 , 2015-11-04
TestClient\AndroidManifest.xml, 1125 , 2015-11-04
TestClient\assets, 0 , 2015-11-05
TestClient\bin, 0 , 2015-11-05
TestClient\bin\AndroidManifest.xml, 1125 , 2015-11-04
TestClient\bin\R.txt, 60838 , 2015-11-05
TestClient\bin\TestClient.apk, 1072184 , 2015-11-04
TestClient\bin\classes, 0 , 2015-11-05
TestClient\bin\classes\android, 0 , 2015-11-05
TestClient\bin\classes\android\support, 0 , 2015-11-05
TestClient\bin\classes\android\support\v7, 0 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat, 0 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R$anim.class, 813 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R$attr.class, 8734 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R$bool.class, 820 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R$color.class, 3770 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R$dimen.class, 4283 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R$drawable.class, 3659 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R$id.class, 3666 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R$integer.class, 657 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R$layout.class, 2313 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R$string.class, 1430 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R$style.class, 18523 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R$styleable.class, 18340 , 2015-11-05
TestClient\bin\classes\android\support\v7\appcompat\R.class, 1015 , 2015-11-05
TestClient\bin\classes\com, 0 , 2015-11-05
TestClient\bin\classes\com\example, 0 , 2015-11-05
TestClient\bin\classes\com\example\testclient, 0 , 2015-11-05
TestClient\bin\classes\com\example\testclient\BuildConfig.class, 353 , 2015-11-05
TestClient\bin\classes\com\example\testclient\MainActivity$1.class, 1126 , 2015-11-05
TestClient\bin\classes\com\example\testclient\MainActivity$2.class, 832 , 2015-11-05
TestClient\bin\classes\com\example\testclient\MainActivity.class, 3246 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$anim.class, 795 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$attr.class, 8716 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$bool.class, 802 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$color.class, 3752 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$dimen.class, 4363 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$drawable.class, 3676 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$id.class, 3687 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$integer.class, 639 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$layout.class, 2332 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$menu.class, 400 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$string.class, 1518 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$style.class, 18573 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R$styleable.class, 18746 , 2015-11-05
TestClient\bin\classes\com\example\testclient\R.class, 981 , 2015-11-05
TestClient\bin\classes.dex, 2360872 , 2015-11-04
TestClient\bin\dexedLibs, 0 , 2015-11-05
TestClient\bin\dexedLibs\android-support-v4-25129f226977e02c8f69461ad0e9bb84.jar, 404585 , 2015-11-04
TestClient\bin\dexedLibs\android-support-v7-appcompat-1c11640a00d14c444faa3e65b7e93784.jar, 233916 , 2015-11-04
TestClient\bin\dexedLibs\appcompat_v7-35f56c30ba3d94193195c2ea373593b6.jar, 166 , 2015-11-04
TestClient\bin\jarlist.cache, 402 , 2015-11-05
TestClient\bin\res, 0 , 2015-11-05
TestClient\bin\res\crunch, 0 , 2015-11-05
TestClient\bin\res\crunch\drawable-hdpi, 0 , 2015-11-05
TestClient\bin\res\crunch\drawable-hdpi\ic_launcher.png, 5964 , 2015-11-04
TestClient\bin\res\crunch\drawable-mdpi, 0 , 2015-11-05
TestClient\bin\res\crunch\drawable-mdpi\ic_launcher.png, 3112 , 2015-11-04
TestClient\bin\res\crunch\drawable-xhdpi, 0 , 2015-11-05
TestClient\bin\res\crunch\drawable-xhdpi\ic_launcher.png, 9355 , 2015-11-04
TestClient\bin\res\crunch\drawable-xxhdpi, 0 , 2015-11-05
TestClient\bin\res\crunch\drawable-xxhdpi\ic_launcher.png, 17889 , 2015-11-04
TestClient\bin\resources.ap_, 408597 , 2015-11-04
TestClient\gen, 0 , 2015-11-05
TestClient\gen\android, 0 , 2015-11-05
TestClient\gen\android\support, 0 , 2015-11-05
TestClient\gen\android\support\v7, 0 , 2015-11-05
TestClient\gen\android\support\v7\appcompat, 0 , 2015-11-05
TestClient\gen\android\support\v7\appcompat\R.java, 81056 , 2015-11-05
TestClient\gen\com, 0 , 2015-11-05
TestClient\gen\com\example, 0 , 2015-11-05
TestClient\gen\com\example\testclient, 0 , 2015-11-05
TestClient\gen\com\example\testclient\BuildConfig.java, 164 , 2015-11-04
TestClient\gen\com\example\testclient\R.java, 417200 , 2015-11-05
TestClient\ic_launcher-web.png, 51394 , 2015-11-04
TestClient\libs, 0 , 2015-11-05
TestClient\libs\android-support-v4.jar, 1184450 , 2015-11-04
TestClient\proguard-project.txt, 781 , 2015-11-04
TestClient\project.properties, 607 , 2015-11-04
TestClient\res, 0 , 2015-11-05
TestClient\res\drawable-hdpi, 0 , 2015-11-05
TestClient\res\drawable-hdpi\ic_launcher.png, 7658 , 2015-11-04
TestClient\res\drawable-ldpi, 0 , 2015-11-05
TestClient\res\drawable-mdpi, 0 , 2015-11-05
TestClient\res\drawable-mdpi\ic_launcher.png, 3777 , 2015-11-04
TestClient\res\drawable-xhdpi, 0 , 2015-11-05
TestClient\res\drawable-xhdpi\ic_launcher.png, 12516 , 2015-11-04
TestClient\res\drawable-xxhdpi, 0 , 2015-11-05
TestClient\res\drawable-xxhdpi\ic_launcher.png, 24777 , 2015-11-04
TestClient\res\layout, 0 , 2015-11-05
TestClient\res\layout\activity_main.xml, 688 , 2015-11-04
TestClient\res\menu, 0 , 2015-11-05
TestClient\res\menu\main.xml, 425 , 2015-11-04
TestClient\res\values, 0 , 2015-11-05
TestClient\res\values\dimens.xml, 220 , 2015-11-04
TestClient\res\values\strings.xml, 227 , 2015-11-04
TestClient\res\values\styles.xml, 699 , 2015-11-04
TestClient\res\values-v11, 0 , 2015-11-05

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Android-Conventional-Check
    说明:  Android 一些 Check 常规检测方法(Android Conventional Check)
    2020-04-27 11:38:47下载
    积分:1
  • SnapshotFull
    Take a Snapshot examle (Android)
    2011-07-18 16:15:23下载
    积分:1
  • android 仿ios 自定义togglebutton例子源码下载(兼容低版本)
    android 仿ios 自定义togglebutton例子源码下载(兼容低版本)
    2015-04-15下载
    积分:1
  • android 解锁例子源码
    package com.codeshogun.android.swipesample;import android.app.Activity;import android.os.Bundle;import android.view.GestureDetector;import android.view.MotionEvent;import android.view.View;import android.view.GestureDetector.SimpleOnGestureListener;import android.view.animation.Animation;import android.view.animation.AnimationUtils;import android.widget.ViewFlipper;public class Main extends Activity { private static final int SWIPE_MIN_DISTANCE = 120; private static final int SWIPE_MAX_OFF_PATH = 250; private static final int SWIPE_THRESHOLD_VELOCITY = 200; private GestureDetector gestureDetector; View.OnTouchListener gestureListener; private Animation slideLeftIn; private Animation slideLeftOut; private Animation slideRightIn; private Animation slideRightOut; private ViewFlipper viewFlipper; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); viewFlipper = (ViewFlipper)findViewById(R.id.flipper); slideLeftIn = AnimationUtils.loadAnimation(this, R.anim.slide_left_in); slideLeftOut = AnimationUtils.loadAnimation(this, R.anim.slide_left_out); slideRightIn = AnimationUtils.loadAnimation(this, R.anim.slide_right_in); slideRightOut = AnimationUtils.loadAnimation(this, R.anim.slide_right_out); gestureDetector = new GestureDetector(new MyGestureDetector()); gestureListener = new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (gestureDetector.onTouchEvent(event)) { return true; } return false; } }; } class MyGestureDetector extends SimpleOnGestureListener { @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { try { if (Math.abs(e1.getY() - e2.getY()) > SWIPE_MAX_OFF_PATH) return false; // right to left swipe if(e1.getX() - e2.getX() > SWIPE_MIN_DISTANCE && Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) { viewFlipper.setInAnimation(slideLeftIn); viewFlipper.setOutAnimation(slideLeftOut); viewFlipper.showNext(); } else if (e2.getX() - e1.getX() > SWIPE_MIN_DISTANCE && Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) { viewFlipper.setInAnimation(slideRightIn); viewFlipper.setOutAnimation(slideRightOut); viewFlipper.showPrevious(); } } catch (Exception e) { // nothing } return false; } } @Override public boolean onTouchEvent(MotionEvent event) { if (gestureDetector.onTouchEvent(event)) return true; else return false; }}
    2014-04-16下载
    积分:1
  • arcgis中国工具
    【实例简介】Arcgis中国工具3.2(注册机版,含操作说明).zip
    2021-09-09 00:31:03下载
    积分:1
  • sensortest
    Android触摸屏的简易传感器测试程序(Touchscreen test applet for Android)
    2012-01-19 10:23:37下载
    积分:1
  • 最好用的通用后台管理框架extjs+MySQL+oracle+SQL server数据库源码
    应用背景最好用的通用后台管理框架extjs+MySQL+oracle+SQL server数据库源码:这是一套很炫的后台管理炒作系统模块-----extjs: 1、功能齐全, 2、完整的后台系统; 3、数据库源码; 4、欢迎下载 关键技术我主要运用了一下的关键技术: 1、jsp+hibernate+Struts2+spring+ajax+jQuery 2、用到了Java面向对象的特征 3、用到了API接口,实现了支付功能; 4、使用的的是三大数据库!
    2022-03-14 14:13:19下载
    积分:1
  • android-mqtt-example
    说明:  安卓通过mqtt协议通信的例程,转载github(Android mqtt communication routine)
    2019-02-17 08:46:19下载
    积分:1
  • TicTacToeChromium
    Android版本的TicTacToe游戏(Android version of TicTacToe game)
    2014-07-12 07:10:07下载
    积分:1
  • CDATASection
    CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup for Andriod.
    2013-10-21 16:25:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载