title: ERROR_WRONG_LABEL while print via WIFI using Android's BROTHER SDK
body: <p>I have Brother QL-710W label printer, I have tried to print via WIFI using Brother's SDK but every time I am getting ERROR_WRONG_LABEL error,</p>
  
  <p>I have tried </p>
  
  <p><a href="https://stackoverflow.com/questions/22808548/error-wrong-label-when-trying-to-print-wireless-using-android-brother-sdk-for-la/50250129#50250129">ERROR_WRONG_LABEL when trying to print wireless using Android Brother Sdk for label printer</a></p>
  
  <p><a href="https://stackoverflow.com/questions/31872204/android-printing-with-brother-sdk-via-wifi-error-wrong-label/38655746?noredirect=1#comment87518418_38655746">Android printing with Brother SDK via WIFI (ERROR_WRONG_LABEL)</a></p>
  
  <p>but no solutions are working, </p>
  
  <p>My code is below</p>
  
  <pre><code>mPrinterInfo.printerModel = PrinterInfo.Model.QL_710W;
  mPrinterInfo.port = PrinterInfo.Port.NET;
  mPrinterInfo.ipAddress = "192.168.8.100";
  //mPrinterInfo.labelNameIndex = 5;
  mPrinterInfo.paperSize = PrinterInfo.PaperSize.CUSTOM;
  mPrinterInfo.paperPosition = PrinterInfo.Align.CENTER;
  mPrinterInfo.orientation = PrinterInfo.Orientation.LANDSCAPE;
  
  mPrinterInfo.labelNameIndex = LabelInfo.QL700.valueOf("W50").ordinal();
  mPrinterInfo.isAutoCut = true;
  
  
  mPrinterInfo.isAutoCut = true;
  mPrinterInfo.isCutAtEnd = true;
  
  LabelInfo mLabelInfo = new LabelInfo();
  mLabelInfo.labelNameIndex = LabelInfo.QL700.valueOf("W50").ordinal();
  mLabelInfo.isAutoCut = true;
  mLabelInfo.isEndCut = true;
  mLabelInfo.isHalfCut = false;
  mLabelInfo.isSpecialTape = false;
  
  
  mPrinter.setPrinterInfo(mPrinterInfo);
  mPrinter.setLabelInfo(mLabelInfo);
  </code></pre>
  
  <p>However Brother's Android apps are successfully printing without any error.</p>