基本步骤: 获取蓝牙适配器bluetoothadapter blueadapter=bluetoothadapter.getdefaultadapter(); 如果bluetoothadapter 为null,说明android手机没有蓝牙模块。 判断蓝牙模块是否开启,blueadapter.isenabled() true表示已经开启,false表示蓝牙并没启用。 启动配置蓝牙可见模式,即进入可配对模式intent in=new intent(bluetoothadapter.action_request_discoverable); in.putextra(bluetoothadapter.extra_discoverable_duration, 200); startactivity(in); ,200就表示200秒。 获取蓝牙适配器中已经配对的设备setdevice=blueadapter.getbondeddevices(); 还需要在androidmanifest.xml中声明蓝牙的权限 接下来就是根据自己的需求对bluetoothadapter 的操作了。