登录
首页 » Android » 安卓蓝牙连接

安卓蓝牙连接

于 2023-04-30 发布 文件大小:208.98 kB
0 187
下载积分: 2 下载次数: 1

代码说明:

这是一款基于蓝牙连接的安卓程序,可以让新手迅速上手安卓蓝牙的开发。通过导入到Eclipse中可以快速的查看到陌生类和方法的API,从而可以快速了解到安卓拉亚的连接,通过socket发送和接受信息。

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

发表评论

0 个回复

  • android抽屉效果demo
    android抽屉效果的demo   ,   例子简单,  一学就会,  包含了简单的抽屉风格布局和动态的效果代码,十分好用
    2022-12-16 21:30:03下载
    积分: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
  • android开发的基于免打扰软件
    quitesleep基于android开发的免打扰项目,请多多指教
    2022-01-26 08:17:06下载
    积分:1
  • android 后台截屏实例源码下载
    本软件需要ROOT权限,如果您没有root权限可以点击我获取root权限
    2015-02-03下载
    积分:1
  • 异步任务中的应用
    Asyntask 应用程序是一个 android 的应用基本上与 asyntask 和它的法像售前售后和 asyntask 背景法相关的。
    2022-07-01 07:08:34下载
    积分:1
  • android 转盘抽奖程序源码 很容易扩展
    android 转盘抽奖程序源码 很容易扩展
    2014-01-02下载
    积分:1
  • GPS
    一份在android下学习GPS和运用百度地图api(Learning to use a GPS and Baidu map api in android)
    2013-12-12 12:42:10下载
    积分:1
  • 88-android-source-projects
    88 android source projects
    2013-12-16 14:15:34下载
    积分:1
  • 基于RRT及其改进型的路径规划算法
    本设计学习并分析了基本RRT路径规划的原理,并通过参考资料及自己分析,提出了一种改进的RRT路径规划算法。为了验证改进型RRT算法的正确性以及合理性。最后在VS2010开发环境下用C 编写了两种RRT算法的程序代码及演示界面。通过一定量的实验得到了大量数据。经过数据分析,验证了改进型RRT是正确的,并且在不破坏基本RRT算法的随机性的前提下,有效的将随机性和目的性结合起来,提高了RRT算法的效率和路径的质量。
    2015-04-03下载
    积分:1
  • android 仿微信录音+播放 例子源码下载(语音对讲)
    仿微信语音对讲,压缩包中包含3个语音相关的例子,具体如下:
    2015-03-26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载