登录
首页 » Java » WiFiDirectDemo

WiFiDirectDemo

于 2016-03-28 发布 文件大小:92KB
0 140
下载积分: 1 下载次数: 12

代码说明:

  实现android手机之间wifi直连的基本功能,包括寻找邻居,建立连接,传输文件。(Achieve wifi direct connection between android phone basic functions, including the search for neighbors, establish a connection, transfer files.)

文件列表:

WiFiDirectDemo
..............\.classpath,364,2013-01-06
..............\.project,854,2013-01-06
..............\AndroidManifest.xml,1656,2013-01-04
..............\assets
..............\......\sample_file.txt,168,2013-01-04
..............\bin
..............\...\AndroidManifest.xml,1656,2013-01-06
..............\...\classes
..............\...\.......\com
..............\...\.......\...\example
..............\...\.......\...\.......\android
..............\...\.......\...\.......\.......\wifidirect
..............\...\.......\...\.......\.......\..........\BuildConfig.class,369,2013-01-06
..............\...\.......\...\.......\.......\..........\DeviceDetailFragment$1.class,2317,2013-01-06
..............\...\.......\...\.......\.......\..........\DeviceDetailFragment$2.class,1207,2013-01-06
..............\...\.......\...\.......\.......\..........\DeviceDetailFragment$3.class,1284,2013-01-06
..............\...\.......\...\.......\.......\..........\DeviceDetailFragment$FileServerAsyncTask.class,3865,2013-01-06
..............\...\.......\...\.......\.......\..........\DeviceDetailFragment.class,6480,2013-01-06
..............\...\.......\...\.......\.......\..........\DeviceListFragment$1.class,915,2013-01-06
..............\...\.......\...\.......\.......\..........\DeviceListFragment$DeviceActionListener.class,456,2013-01-06
..............\...\.......\...\.......\.......\..........\DeviceListFragment$WiFiPeerListAdapter.class,2487,2013-01-06
..............\...\.......\...\.......\.......\..........\DeviceListFragment.class,5042,2013-01-06
..............\...\.......\...\.......\.......\..........\FileTransferService.class,3609,2013-01-06
..............\...\.......\...\.......\.......\..........\R$attr.class,376,2013-01-06
..............\...\.......\...\.......\.......\..........\R$color.class,482,2013-01-06
..............\...\.......\...\.......\.......\..........\R$dimen.class,481,2013-01-06
..............\...\.......\...\.......\.......\..........\R$drawable.class,658,2013-01-06
..............\...\.......\...\.......\.......\..........\R$id.class,1066,2013-01-06
..............\...\.......\...\.......\.......\..........\R$layout.class,537,2013-01-06
..............\...\.......\...\.......\.......\..........\R$menu.class,432,2013-01-06
..............\...\.......\...\.......\.......\..........\R$string.class,948,2013-01-06
..............\...\.......\...\.......\.......\..........\R.class,793,2013-01-06
..............\...\.......\...\.......\.......\..........\WiFiDirectActivity$1.class,1384,2013-01-06
..............\...\.......\...\.......\.......\..........\WiFiDirectActivity$2.class,1153,2013-01-06
..............\...\.......\...\.......\.......\..........\WiFiDirectActivity$3.class,1547,2013-01-06
..............\...\.......\...\.......\.......\..........\WiFiDirectActivity$4.class,1382,2013-01-06
..............\...\.......\...\.......\.......\..........\WiFiDirectActivity.class,6832,2013-01-06
..............\...\.......\...\.......\.......\..........\WiFiDirectBroadcastReceiver.class,3645,2013-01-06
..............\...\res
..............\gen
..............\...\com
..............\...\...\example
..............\...\...\.......\android
..............\...\...\.......\.......\wifidirect
..............\...\...\.......\.......\..........\BuildConfig.java,172,2013-01-06
..............\...\...\.......\.......\..........\R.java,3535,2013-01-06
..............\project.properties,563,2013-01-06
..............\res
..............\...\drawable
..............\...\........\details_view.xml,436,2013-01-04

..............\...\........\section_header.xml,417,2013-01-04
..............\...\drawable-hdpi




..............\...\drawable-ldpi

..............\...\.............\ic_action_discover.png
..............\...\.............\ic_action_on_off.png

..............\...\drawable-mdpi

..............\...\.............\ic_action_discover.png
..............\...\.............\ic_action_on_off.png

..............\...\drawable-xhdpi



..............\...\layout
..............\...\......\device_detail.xml,2861,2013-01-04
..............\...\......\device_list.xml,2883,2013-01-04
..............\...\......\main.xml,1078,2013-01-04
..............\...\......\row_devices.xml,1248,2013-01-04
..............\...\layout-land
..............\...\...........\main.xml,1080,2013-01-04
..............\...\layout-large
..............\...\............\main.xml,999,2013-01-04
..............\...\menu
..............\...\....\action_items.xml,534,2013-01-04
..............\...\values
..............\...\......\colors.xml,173,2013-01-04
..............\...\......\dimens.xml,775,2013-01-04
..............\...\......\strings.xml,1011,2013-01-04
..............\src
..............\...\com
..............\...\...\example
..............\...\...\.......\android
..............\...\...\.......\.......\wifidirect
..............\...\...\.......\.......\..........\DeviceDetailFragment.java,9874,2013-01-06
..............\...\...\.......\.......\..........\DeviceListFragment.java,5715,2013-01-06
..............\...\...\.......\.......\..........\FileTransferService.java,2658,2013-01-06
..............\...\...\.......\.......\..........\WiFiDirectActivity.java,8242,2013-01-06
..............\...\...\.......\.......\..........\WiFiDirectBroadcastReceiver.java,3879,2013-01-06

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

发表评论

0 个回复

  • 客户端首页广告栏位循环 并支持点击
    客户端首页广告栏位循环 并支持点击
    2015-01-19下载
    积分:1
  • jAVA纸牌游戏程序
    游戏简介: 在按“发牌”按钮时应产生4个1~11之间的随机数分别来表示庄家和玩家的四张牌。计算出庄家和玩家牌的点数合,并判断好他们之间的胜负做个标记来表示他们之间胜负。 “发牌”结束后,由玩家选定自己下注的金额。 在按“开牌”按钮时根据“发牌”时产生的随机数显示出庄家和玩家牌的图片(如产生的随机数1就显示A这张牌,2就显示2这种牌……以此类推。)然后再根据做好的胜负标记,以及玩家下注的金额,对玩家的现有金额进行处理(加钱或减钱)。 当玩家的现有金额小于等于0的时候退出游戏。
    2022-03-20 00:28:54下载
    积分:1
  • FingerPaint
    说明:  使用android手机系统实现的手绘功能(Implementation of the system using android phone features hand-painted)
    2011-03-29 08:34:26下载
    积分:1
  • 失物招领系统
    失主可以通过网络进入到本系统,查询自己丢失的物品是否已被好心人拾到并交给了招领中心和对好心人的感谢等;拾到物品的人可以通过该系统直接发布拾到物品的信息;管理员可通过本系统对失物信息、报失信息、留言...
    2023-01-07 11:10:03下载
    积分:1
  • 聊天应用程序
    这一项目都是一个房间聊天应用程序哪里 enetring 到他或她在用户选择的空间,可以是板球、 橄榄球、 棒球、 政治学、 娱乐等...和比人开始要放在那里点的组中的意见。
    2022-03-22 11:09:43下载
    积分:1
  • android open gl 示例代码下载
    [实例简介]Open GL 入门级示例 [实例截图] [核心代码]package com.china.gltry;import javax.microedition.khronos.egl.EGL10;import javax.microedition.khronos.egl.EGL11;import javax.microedition.khronos.egl.EGLConfig;import javax.microedition.khronos.egl.EGLContext;import javax.microedition.khronos.egl.EGLDisplay;import javax.microedition.khronos.egl.EGLSurface;import javax.microedition.khronos.opengles.GL;import android.view.SurfaceHolder;/** * An EGL helper class. */public class EGLHelper{ public EGLHelper() { } /** * Initialize EGL for a given configuration spec. * @param configSpec */ public void start(int[] configSpec){ /* * Get an EGL instance */ mEgl = (EGL10) EGLContext.getEGL(); /* * Get to the default display. */ mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); /* * We can now initialize EGL for that display */ int[] version = new int[2]; mEgl.eglInitialize(mEglDisplay, version); EGLConfig[] configs = new EGLConfig[1]; int[] num_config = new int[1]; mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, num_config); mEglConfig = configs[0]; /* * Create an OpenGL ES context. This must be done only once, an * OpenGL context is a somewhat heavy object. */ mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, null); mEglSurface = null; } /* * Create and return an OpenGL surface */ public GL createSurface(SurfaceHolder holder) { /* * The window size has changed, so we need to create a new * surface. */ if (mEglSurface != null) { /* * Unbind and destroy the old EGL surface, if * there is one. */ mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); mEgl.eglDestroySurface(mEglDisplay, mEglSurface); } /* * Create an EGL surface we can render into. */ mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, holder, null); /* * Before we can issue GL commands, we need to make sure * the context is current and bound to a surface. */ mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); GL gl = mEglContext.getGL(); return gl; } /** * Display the current render surface. * @return false if the context has been lost. */ public boolean swap() { mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); /* * Always check for EGL_CONTEXT_LOST, which means the context * and all associated data were lost (For instance because * the device went to sleep). We need to sleep until we * get a new surface. */ return mEgl.eglGetError() != EGL11.EGL_CONTEXT_LOST; } public void finish() { if (mEglSurface != null) { mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); mEgl.eglDestroySurface(mEglDisplay, mEglSurface); mEglSurface = null; } if (mEglContext != null) { mEgl.eglDestroyContext(mEglDisplay, mEglContext); mEglContext = null; } if (mEglDisplay != null) { mEgl.eglTerminate(mEglDisplay); mEglDisplay = null; } } EGL10 mEgl; EGLDisplay mEglDisplay; EGLSurface mEglSurface; EGLConfig mEglConfig; EGLContext mEglContext;}
    2015-04-06下载
    积分:1
  • 基于 java 贪吃蛇游戏
    基于的贪吃蛇游戏是流行于诺基亚手机,这些版本用 Java 编写的它也有一个彩色的版本。还有一些与这一使它升级的版本相比,与常规的诺基亚手机的唯一性。这场比赛也是容易玩,任何年龄的人将得到它的挂起时它就是 played.it 可以在不同的编程语言编写,但作者选择去与 java 只是为了显示 java 编程语代码的唯一性提供还可以轻松地修改工作与其他简单的游戏,涉及从左到右,向上和向下运动。
    2023-03-04 08:30:02下载
    积分:1
  • 笔录 APP
    说明:  取代办公部门外出工作时需要笔录,这款APP上,可以将所有的操作电子化,本源码只是一些思路,和一些个性化的页面控件(Instead of taking notes when law enforcement departments used to work, this APP can make all operations electronic. The source code is just some ideas, and some personalized page controls.)
    2020-06-19 10:40:02下载
    积分:1
  • 串口通讯实例(java swing)
    【实例简介】实现了,多个监听多个串口设备连接
    2021-09-27 00:31:17下载
    积分:1
  • ssh比邻社交网络
    ssh架构 类似于人人的社交网站 经测试无问题,只需将sql文件导入到数据库中就可以了。数据库是mysql 学校课设
    2022-02-06 07:38:43下载
    积分:1
  • 696518资源总数
  • 105554会员总数
  • 2今日下载