Hi Clover Dev,
I'm having a hard time trying to get the StaticOrderPrintJob to print an orders line items
#1:
StaticOrderPrintJob.Builder().order(order).build().print(Activity.this, account);
#2
I'm atleast able to get it to print dates, times, and the order number when I include a string array in .itemIds(stringArray) e.g:
StaticOrderPrintJob.Builder().markPrinted(true).reprintAllowed(true).itemIds(itemIds).order(order).build().print(Activity.this, account);
But none of the line items print in that case.. I'm just getting the dates and order id.
Below is the log output when it crashes with attempt #1. I'd love to take a look at that com.clover.engine.printer.PrintService class to see what i'm missing. Is there any documentation on what's required? Is it something missing from my order object by any chance? Thanks
08-31 22:41:44.065 2464-2464/com.example.pshee.espressio W/ContextImpl: Implicit intents with startService are not safe: Intent { act=com.clover.sdk.printer.intent.action.PRINT_SERVICE (has extras) } android.content.ContextWrapper.startService:494 com.clover.sdk.v1.printer.job.PrintJob.print:99 com.clover.sdk.v1.printer.job.PrintJob.print:91
08-31 22:41:44.506 27243-3795/? E/AndroidRuntime: FATAL EXCEPTION: IntentService[com.clover.engine.printer.PrintService]
Process: com.clover.engine, PID: 27243
java.lang.NullPointerException
at com.clover.engine.printer.PrintService.isReprint(PrintService.java:197)
at com.clover.engine.printer.PrintService.onHandleIntent(PrintService.java:81)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)