登录
首页 » Java » android 远程控制实例(基于Socket通信)

android 远程控制实例(基于Socket通信)

于 2020-12-06 发布
0 189
下载积分: 1 下载次数: 0

代码说明:

通过android实现远程控制,主要用于智能家具控制。

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

发表评论

0 个回复

  • 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
  • android TextView加载Html文本 样式 例子源码下载
    可将html中的 样式信息 展现在 textview中
    2015-04-22下载
    积分:1
  • android 百度地图 示例源码(内嵌html5实现)
    android 百度地图 示例源码(内嵌html5实现)
    2014-07-24下载
    积分:1
  • android 用Http请求网页源代码(get/post形式均已实现)【有截图附完整源码】
    android 用Http请求网页源代码(get/post形式均已实现)【有截图附完整源码】
    2013-03-02下载
    积分:1
  • 计算器 Calculator.
    计算器_Calculator. 计算器_Calculator.v
    2014-04-10下载
    积分:1
  • 微信公众号获取用户openId及用户信息
    在开发微信公众号时,一旦用户关注了微信公众号,用户后续的操作已经跟用户的信息进行了绑定,那这些绑定的信息其它是通过OpenId进行的,每个用户关注不同的微信公众号时会产生唯一且不同的OpenId, OpenId相应于用户唯一主键
    2018-03-07下载
    积分:1
  • android系统控制onvif协议摄像头app源码
    android-onvif是一个基于android系统控制onvif协议摄像头的软件项目,例如海康摄像头等。本项目已将接口封装,使用简单。后续将扩展更多功能。。。功能介绍探索与发现摄像头摄像头参数获取和获取摄像头账号密码修改摄像头的固件升级摄像头截图修改摄像头时间重启摄像头修改摄像头ip
    2021-05-06下载
    积分:1
  • android listview 异步加载网络图片示例源码下载(亲测通过,不卡)
    listview 异步加载网络图片,支持拖动下一页,不卡
    2014-04-13下载
    积分:1
  • java 仓库管理系统源码(含sql server数据库)
    Java,sql编写的仓库管理系统,附加数据库后 ,登录账号:wyt 密码:001 系统介绍三只松鼠超市管理系统是一款辅助超市管理员管理超市的实用性项目,根据超市的日常管理需要,超市管理系统应包括基本档案管理、采购订货管理、仓库入库管理、仓库出库管理、人员管理、部门管理6大功能。其中基本档案管理又分为供货商管理、销售商管理、货品档案管理、仓库管理,为管理员提供日常基本信息的功能,采购订货管理模块,用来对日常的采购订货信息进行管理,仓库入库管理,管理各种商品入库的信息,仓库出库管理,管理商品出库记录,人员管理,实现对员工的管理,部门管理实现对超市的各个独立部门进行管理。 操作流程(1)进入主窗体可通过主窗体中的功能导航菜单进入“基本档案”管理子模块,在基本档案管理模块中又包含“供货商管理”、“销售商管理”、“货品档案管理”、“仓库管理”功能。(2)当用户单击主窗体中功能导航菜单中的“采购订货”按钮,可进入采购订货子模块。(3)主窗体的功能导航菜单中还包含有“仓库入库”、“仓库出库”、“人员管理”、“部门管理”内容。(4)每一个模块都实现了其添加、删除、修改功能。便于进行管理。
    2018-01-05下载
    积分:1
  • android播放IPCamera的rtsp连接
    vlc-android播放网络视频成功
    2014-10-18下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载