title: ZXING android QR Code Mode 1 and Mode 2 Type
body: <p>I've created and android application that can generate and scan qr code the problem is when i generate a qr code it can only be read horizontally using a zxing qr scanner but when i find a sample qr code on google it can read even on vertical format </p>
  
  <p>I search and I find out that there are 2 types of basic qr code MODE1 and MODE2 I conclude that zxing can only generate MODE1 </p>
  
  <p>Is there any way that I can change the type of generated QR Code using zxing to MODE2 so that the scanner can read it horizontallly or vertically?</p>
  
  <p>thanks.</p>
  
  <p>here is the code i use to generate</p>
  
  <pre><code>MultiFormatWriter multiFormatWriter = new MultiFormatWriter();
  
              try{
                  BitMatrix bitMatrix = multiFormatWriter.encode(text.getText().toString(), BarcodeFormat.QR_CODE,200,200);
  
                  BarcodeEncoder barcodeEncoder = new BarcodeEncoder();
                  Bitmap bitmap = barcodeEncoder.createBitmap(bitMatrix);
                  image.setImageBitmap(bitmap);
  
              }catch (WriterException e){
                  e.printStackTrace();
              }
  </code></pre>