0 Replies Latest reply on Oct 20, 2015 1:31 AM by Simon Cingols

    RW420 how print multiple copies with Android SDK?

    Simon Cingols

      I'm printing a bitmap with the Android SDK in this way:


      //variable

      int printQty= 3;


      Connection connection = new BluetoothConnection(printerAddress);

      connection.open();

      //for removing the useless margin printed

      connection.write("! U1 JOURNAL\r\n! U1 SETFF 100 2\r\n".getBytes());

       

      ZebraPrinter printer = ZebraPrinterFactory.getInstance(connection);

      Bitmap bitmapToPrint = i got my bitmap somewhere....

      ZebraImageAndroid zebraImageToPrint = new ZebraImageAndroid(bitmapToPrint);

      for (int i = 0; i < printQty; i++){

           printer.printImage(zebraImageToPrint, 0, 0, -1, -1, false);

      }

      bitmapToPrint.recycle();

      connection.close();

       

       

      The problem is:
      the printing is taking a lot of time because the bitmap is large, is there a way to bypass the for loop and tell to the printer how many quantity to print without calling printImage multiple times?

       

      Thanks

      Simon