question

01928-7325x2 avatar image
01928-7325x2 asked 01928-7325x2 answered

Cannot Print Using Clover Flex

Is there any example code for connecting printer to Clover Flex? Got this error when trying to print. It seems Clover Flex needs V3 SDK. But I couldn't find any example for printing using Clover V3 SDK

I/PrinterTestActivity( 1970): service connected: com.clover.sdk.v1.printer.PrinterConnector@25cf8f8 W/System.err( 1970): java.lang.IllegalArgumentException: BAYLEAF_USB is not a constant in com.clover.sdk.v1.printer.Type W/System.err( 1970): at java.lang.Enum.valueOf(Enum.java:200) W/System.err( 1970): at com.clover.sdk.v1.printer.Type.valueOf(Type.java:22) W/System.err( 1970): at com.clover.sdk.v1.printer.Type$1.createFromParcel(Type.java:93) W/System.err( 1970): at com.clover.sdk.v1.printer.Type$1.createFromParcel(Type.java:90) W/System.err( 1970): at android.os.Parcel.readParcelable(Parcel.java:2252) W/System.err( 1970): at com.clover.sdk.v1.printer.Printer.<init>(Printer.java:136) W/System.err( 1970): at com.clover.sdk.v1.printer.Printer.<init>(Printer.java:24) W/System.err( 1970): at com.clover.sdk.v1.printer.Printer$1.createFromParcel(Printer.java:267) W/System.err( 1970): at com.clover.sdk.v1.printer.Printer$1.createFromParcel(Printer.java:265) W/System.err( 1970): at android.os.Parcel.createTypedArrayList(Parcel.java:1914) W/System.err( 1970): at com.clover.sdk.v1.printer.IPrinterService$Stub$Proxy.getPrinters(IPrinterService.java:246) W/System.err( 1970): at com.clover.sdk.v1.printer.PrinterConnector$1.call(PrinterConnector.java:115) W/System.err( 1970): at com.clover.sdk.v1.printer.PrinterConnector$1.call(PrinterConnector.java:112) W/System.err( 1970): at com.clover.sdk.v1.ServiceConnector$1.run(ServiceConnector.java:229) W/System.err( 1970): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) W/System.err( 1970): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) W/System.err( 1970): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) W/System.err( 1970): at java.lang.Thread.run(Thread.java:818) W/PrinterConnector( 1970): on service connect failure I/Timeline( 1970): Timeline: Activity_idle id: android.os.BinderProxy@1f4bc75e time:709997 I/Timeline( 1970): Timeline: Activity_idle id: android.os.BinderProxy@1f4bc75e time:709998 W/ContextImpl( 8710): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1341 android.content.ContextWrapper.sendBroadcast:382 android.app.Activity.onStop:1578 android.app.Instrumentation.callActivityOnStop:1277 android.app.Activity.performStop:6152 I/Timeline( 702): Timeline: Activity_windows_visible id: ActivityRecord{1934433b u0 com.fourleaflabs.eu.orderalert/com.fourleaflabs.orderalert.core.PrintersListActivity t14} time:710298 D/bt ( 913): visibility:0

Clover Flex
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

01928-7325x2 avatar image
01928-7325x2 answered

Sorry, my Clover V1 SDK not updated.

~ Case closed~

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community