my TC51 using Android API 26
1. I already added AndroidManifest.xml
2. also added code to my activity
try {
System.out.println("Looking for Printer"); BluetoothDiscoverer.findPrinters(BluetoothDiscovery.this, new DiscoveryHandler() {
@Override public void foundPrinter(DiscoveredPrinter discoveredPrinter) {
System.out.println("Found Printer"); }
@Override public void discoveryFinished() {
System.out.println("Done Find"); }
@Override public void discoveryError(String s) {
System.out.println("Error Printer "+s); }
});} catch (ConnectionException e) {
System.out.println(e.getMessage());}
Callback work only discoveryFinished
Cannot find any printer. What else i have to do? i missed something?
ps. I test with ZebraDemo and it works
Thank you
1 Replies
Hello Amornsak,
You can try to build a demo application form LinkOS SDK and check if it will be able to discover your printer:
Link-OS Multiplatform SDK | Zebra
To do that you will need to install SDK and then find demo app source code using following steps:
1) press Start button
2) Find SDK in menus: All Programs -> Zebra Technologies -> Link-OS Multiplatform SDK -> Link-OS Multiplatform SDK. It will open file explorer in the root directory of SDK.
3) Go to subdirectories: android -> v2.14.5198 -> demos
There you can find a source code of demo application. Here you can see how to import application code into Android Studio and add SDK libraries:
Link-OS SDK - Zebra Technologies Techdocs http://techdocs.zebra.com/link-os/2-14/android/
In case it will successfully discover your printer you may need to compare applications implementation. Your application and a demo.
Dmitry Prokhorov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies