Hi there,
I am developing a android app, where I'm using this sample code with attempt to connect to the ZQ510 Zebra Printer via Bluetooth. But it's not successful.
My question are,
1. Can we connect with the particular model above with the current Android SDK?
2. What are the workaround or debugging ways on the situation?
5 Replies
Hello,
The following link is to the Link-OS SDK which does support the ZQ510; additionally, the SDK includes a Developer Demo (sample code) for Android development.
https://www.zebra.com/us/en/support-downloads/printer-software/link-os-…
Hello,
Let me describe the error in more detail.
I downloaded the source code and libs from here: https://www.zebra.com/us/en/support-downloads/printer-software/link-os-…. And I use DeveloperDemo_Android-debug.apk, everything works fine with the printer ZQ510. But when I import and run the downloaded source code in folder androidstudio, app doesn't scan any printer via bluetooth and wifi. Funtion DiscoveryDemo -> BluetoothDiscovery or FindPrintersDiscoveryResultList.
I have checked the source code and provided all necessary permissions and do not modify your source code.
I attached APK-debugs with function scan build from your source: https://drive.google.com/file/d/14WciF0WyRuEMGc8lZQwXfP50mhS0ED2j/view?…
Hello,
I appreciate the clarification. With respect to the PC hosting the Android Studio, does this PC have Bluetooth enabled? Can you seen the printer as a discoverable device from the PC via Bluetooth?
Hello,
Bluetooth is turned on, printer found via bluetooth and used DeveloperDemo_Android-debug.apk also found in BluetoothDiscovery screen
Hi Hieu,
To use the BluetoothDiscovery on Android device, we need to enable the android.permission.ACCESS_FINE_LOCATION, especially for the devices on Android 11 or later. Refer to this article for details - Link-OS SDK for Android | Permissions and Bluetooth API.