FkhtQRavyz xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">

蓝牙快速连接

AndroidPrinterSDK 提供保存与提取蓝牙地址的方法。当检测到蓝牙绑定或连接成功之后,可调用Utils.saveBtConnInfo()方法,将蓝牙地址传入保存。下一次连接前调用Utils.getBtConnInfo(),即可取得保存的蓝牙地址,省去蓝牙扫描与选择设备的时间。保存的地址关闭APP后重新进入时依然可以取得。但需注意,最多只能保存一个蓝牙地址,即每一次保存蓝牙地址,都会覆盖上一次保存的地址。

 

Bluetooth Fast Connection

 

AndroidPrinterSDK supplies the method of saving and extracting the Bluetooth address. When the Bluetooth binding or successful connection is detected, “Utils.saveBtConnInfo()” method can be called and save the Bluetooth address. Next time, call “Utils.getBtConnInfo()” before the connection to get the saved Bluetooth address and save the time of scanning & choosing device. The saved Bluetooth address can be still gained after restarting the APP. But pls pay attention, only one Bluetooth address can be saved. It means when one new Bluetooth address is saved, the old one will be covered.