android蓝牙传文件开发,Android Bluetooth文件传输
【实例简介】
Android Bluetooth文件的引入和传输,可使用两台设备,一个做客户端一个做服务端,传输文件,显示传送进度。
【实例截图】
【核心代码】
Bluetooth
└── Bluetooth
├── AndroidManifest.xml
├── bin
│ ├── AndroidManifest.xml
│ └── classes
│ └── com
│ └── ds
│ ├── bluetooth
│ │ ├── BuildConfig.class
│ │ ├── ClientActivity$1.class
│ │ ├── ClientActivity$2.class
│ │ ├── ClientActivity.class
│ │ ├── ClientActivity1$1.class
│ │ ├── ClientActivity1$2.class
│ │ ├── ClientActivity1.class
│ │ ├── ClientActivity2$1.class
│ │ ├── ClientActivity2$2.class
│ │ ├── ClientActivity2$3.class
│ │ ├── ClientActivity2$4.class
│ │ ├── ClientActivity2.class
│ │ ├── MainActivity$ButtonClickListener.class
│ │ ├── MainActivity.class
│ │ ├── R$attr.class
│ │ ├── R$drawable.class
│ │ ├── R$id.class
│ │ ├── R$layout.class
│ │ ├── R$string.class
│ │ ├── R.class
│ │ ├── ServerActivity$1.class
│ │ ├── ServerActivity$2.class
│ │ ├── ServerActivity.class
│ │ ├── ServerActivity1$1.class
│ │ ├── ServerActivity1$2.class
│ │ ├── ServerActivity1$3.class
│ │ ├── ServerActivity1$4.class
│ │ └── ServerActivity1.class
│ ├── bluetoothUtil
│ │ ├── BluetoothClientConnThread.class
│ │ ├── BluetoothClientService$1$1MyRunnable.class
│ │ ├── BluetoothClientService$1.class
│ │ ├── BluetoothClientService$2.class
│ │ ├── BluetoothClientService.class
│ │ ├── BluetoothCommunSocket.class
│ │ ├── BluetoothCommunThreads.class
│ │ ├── BluetoothServerConnThread.class
│ │ ├── BluetoothServerService$1$1MyRunnable.class
│ │ ├── BluetoothServerService$1.class
│ │ ├── BluetoothServerService$2.class
│ │ ├── BluetoothServerService.class
│ │ ├── BluetoothTools.class
│ │ ├── ClientListListener$1.class
│ │ ├── ClientListListener$2.class
│ │ ├── ClientListListener$3.class
│ │ ├── ClientListListener.class
│ │ ├── TransmitBean.class
│ │ ├── wanquantestBluetoothServerConnThread$AcceptThread.class
│ │ ├── wanquantestBluetoothServerConnThread$ConnectedThread.class
│ │ └── wanquantestBluetoothServerConnThread.class
│ └── file
│ ├── AdapterManager$1.class
│ ├── AdapterManager.class
│ ├── FileListAdapter.class
│ ├── FileUtil.class
│ ├── MyFile.class
│ ├── SelectFileActivity$1.class
│ ├── SelectFileActivity$2.class
│ ├── SelectFileActivity$3.class
│ ├── SelectFileActivity$4.class
│ ├── SelectFileActivity$5.class
│ └── SelectFileActivity.class
├── gen
│ └── com
│ └── ds
│ └── bluetooth
│ ├── BuildConfig.java
│ └── R.java
├── proguard.cfg
├── project.properties
├── res
│ ├── drawable-hdpi
│ │ └── icon.png
│ ├── drawable-ldpi
│ │ ├── ic_launcher.png
│ │ └── icon.png
│ ├── drawable-mdpi
│ │ ├── icon.png
│ │ ├── icon_file.png
│ │ ├── icon_folder.png
│ │ └── listbg.xml
│ ├── layout
│ │ ├── bluetooth.xml
│ │ ├── bonddevice_item.xml
│ │ ├── client.xml
│ │ ├── client2.xml
│ │ ├── file_list_item.xml
│ │ ├── main.xml
│ │ ├── select_file.xml
│ │ ├── send_layout.xml
│ │ ├── server.xml
│ │ └── unbonddevice_item.xml
│ └── values
│ └── strings.xml
└── src
└── com
└── ds
├── bluetooth
│ ├── ClientActivity.java
│ ├── ClientActivity1.java
│ ├── ClientActivity2.java
│ ├── MainActivity.java
│ ├── ServerActivity.java
│ └── ServerActivity1.java
├── bluetoothUtil
│ ├── BluetoothClientConnThread.java
│ ├── BluetoothClientService.java
│ ├── BluetoothCommunSocket.java
│ ├── BluetoothCommunThreads.java
│ ├── BluetoothServerConnThread.java
│ ├── BluetoothServerService.java
│ ├── BluetoothTools.java
│ ├── ClientListListener.java
│ ├── TransmitBean.java
│ └── wanquantestBluetoothServerConnThread.java
└── file
├── AdapterManager.java
├── FileListAdapter.java
├── FileUtil.java
├── MyFile.java
└── SelectFileActivity.java
24 directories, 105 files
android蓝牙传文件开发,Android Bluetooth文件传输相关推荐
- android 蓝牙锁应用开发实例(三)蓝牙相关功能实现【第一部分】
本人水平有限,文章中如果出现什么不正确或者模糊的地方,还请各位小伙伴留下评论,多多指教 : ) 正式开始前的话 蓝牙开发梳理 整体思路 核心API BlueToothAdapter 简介 getDef ...
- android蓝牙传文件在哪里找,手机蓝牙传输的文件在哪里_华为手机蓝牙传输记录在哪-系统城...
蓝牙传输是无线传输的一种,在没网时很多用户都会选择用蓝牙来传输,但手机蓝牙传输的文件在哪里呢?有些使用华为手机的用户就有这一疑问,所以对此今天本文为大家分享的就是关于华为手机蓝牙传输记录的查看方法. ...
- Android用PdfRenderer类开发打开pdf文件的功能
PdfRenderer是Android官方用于开发打开pdf文件功能的类,今天介绍一下它的最基本的使用.Android官方有一个相关的Sample,项目名是PdfRendererBasic,大家也可以 ...
- Android蓝牙通信功能开发
1. 概述 Bluetooth 是几乎现在每部手机标准配备的功能,多用于耳机 mic 等设备与手机的连接,除此之外,还可以多部手机之间建立 bluetooth 通信,本文就通过 SDK 中带的一个聊天 ...
- Android蓝牙bt/ble开发
参看文档: 蓝牙开发:https://www.jianshu.com/p/4ecc99679451 蓝牙bt/ble区别:https://zhuanlan.zhihu.com/p/59907996 安 ...
- android 蓝牙串口数据格式,Android 蓝牙串口调试程序开发
前言:本次项目需要为智能设备开发一个 App 于是就开始学习 Android 的蓝牙串口通信方面的知识,现在 App 已经写完了,当初学的时候走了不少弯路和尝试,现作为一名初学者和大家分享一下经验,以 ...
- Android蓝牙4.0开发及发送指令到蓝牙硬件设备,简单好用,方法已写好直接可用
近日,接到需要用到蓝牙解锁硬件设备的新需求,开发过程中呢也遇到许多硬件的坑,开发协议文档较简单,几句话就完了,第一次搞得我自己一脸懵逼,本来一两个小时就能写完并测试完成的过程用了两三天.哎!默默地回到 ...
- Android蓝牙串口程序开发
本文主要介绍了针对android的蓝牙串口上位机开发. 程序下载地址:点击打开链接 一.帧定义 androidclient依照一定的数据帧格式通过蓝牙串口发送数据到连接到MCU的蓝牙从机.MCU接收到 ...
- android蓝牙设置特征属性,Android BLE蓝牙详细解读(二)
上篇文章主要介绍了关于BLE的一些基础操作,我们能够大概了解到蓝牙操作的一些流程,上文末介绍了本人的一个BLE开源库,支持蓝牙一对多的连接方式,该库封装了蓝牙的开启.扫描.连接.断开.连接超时...一 ...
最新文章
- 列式存储 V.S. 行式存储
- 正式环境docker部署hyperf_Hyperf使用docker-compose集群部署
- 使用静态代理模式实现公用的报表导出功能
- LeetCode 63. Unique Paths II
- linux 中文 文件名乱码,中文文件名乱码问题
- mvn 命令指定jdk版本
- lisp成套电气设计_针对电气成套行业的专业设计仿真软件
- 网站域名如何解析到阿里云和腾讯云服务器?
- 使用知用电流探头时如何设置示波器参数
- 1.urllib爬取数据
- 猴子分桃问题的几种解法
- css实现毛玻璃效果
- POJ_1647_One-move checkmate
- Java:用户输入矩形的长和宽,使用带返回值的方法求该矩形的面积并输出
- 多事之秋:不怕贼偷,就怕惦记
- 2023最新全网素材解析网站工作原理,附带小例子。
- web网站开发,web开发平台
- 商业银行的表内业务与表外业务
- 实现企业转型华,为云大数据实力领先
- Android ------ 360加固出现预签名失败align error
热门文章
- OC加强(三)之protocol(协议)/代理
- UML ~ Unified Modeling Language ~ 统一建模语言。+ 软件设计原则。
- 计算机基础操作(计算机硬件知识)
- 交流充电桩电路图_详细剖析交流充电桩上电源和RS485隔离原理
- position属性详解
- 写给认真学习却进步缓慢的大一学生
- 汉字点阵c语言程序,用c51单片机控制1616点阵显示汉字源代码
- linux qnx 开发平台,QNX学习笔记之QNX Momentics IDE开发工具使用笔记
- Sci论文常见的格式问题
- 【ora】+eclp+OpM错误提示、特殊处理