简体   繁体   English

Android蓝牙配对行为不同

[英]Android Bluetooth pairing different behavior

I have developed an app that prints receipts to a Bluetooth printer (Star Micronics). 我开发了一个将收据打印到蓝牙打印机(Star Micronics)的应用程序。

When I execute my app on an Android tablet with 4.1 OS everything works. 当我在带有4.1操作系统的Android平板电脑上执行我的应用程序时,一切正常。

When I execute my app on an Android tablet with 4.0 OS I have to re enter Bluetooth pairing password every time I want to print and the printer failed to connect although it is paired. 当我在具有4.0操作系统的Android平板电脑上执行我的应用程序时,每次我要打印时都必须重新输入蓝牙配对密码,尽管打印机已配对,但打印机仍无法连接。

Is this a bug of 4.0 or I have to do something in my code? 这是4.0的错误,还是我必须在代码中做点什么?

I have encountered the same problem! 我遇到了同样的问题! It's because of the version of Android. 这是因为Android版本。 Update the version of Android to 4.1 will do the trick. 将Android更新到4.1版即可解决问题。 You can find lots of ways to update the Android version from 4.0 to 4.1 online. 您可以找到许多方法在线将Android版本从4.0更新到4.1。

Jake 杰克

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM