Here is my code.
PrintJob pjReceipt = new ReceiptPrintJob.Builder().orderId(order_id).build();
PrintJob pjImage = new ImagePrintJob.Builder().bitmap(bitmap).maxWidth().printJob(pjReceipt).build();
new PrintJobsConnector(PaymentSuccessListner.this).print(p, pjImage);
i want to print image in receipt without using ContentProvider technique, so i want to know, is this way works?