title: how to get QR code type
body: <p>I am  working with Zxing library to decode QR code for android. I can get QR Code. Now, I want to catch what types of QR code it returns say (URL,Phone Nubmer,Plain Text etc). I tried to explore <a href="http://code.google.com/p/zxing/source/browse/trunk/core/src/com/google/zxing/client/result/ResultParser.java?r=2283" rel="nofollow">ResultParser</a> class but i can't use it. </p>
  
  <p><strong>Updated</strong>: I remove my wrong procedure using ResultParser class.</p>
  
  <p>Here is my onActivityResult Code. </p>
  
  <pre><code>    @Override
  public void onActivityResult(int requestCode, int resultCode, Intent intent) {
      if (requestCode == 0) {
          if (resultCode == RESULT_OK) {
              contents = intent.getStringExtra("SCAN_RESULT");
          // check the contents strings here 
            //  Need to get actual return type of result 
              if (contents.contains("https:") || contents.contains("http:")) {
                  aBarcode.setBarcode_Type(WEB_URL);
                  Intent browserIntent = new Intent(Intent.ACTION_VIEW,
                          Uri.parse(contents));
                  startActivity(browserIntent);
  
              } else {
                  aBarcode.setBarcode_Type(PLAIN_TEXT);
                  Toast.makeText(getApplicationContext(), contents,
                          Toast.LENGTH_LONG).show();
              }
              barcodeList.add(aBarcode);
              // show previous barcodes detail
              showBarcodeReaderHistory();
              // Handle successful scan
          } else if (resultCode == RESULT_CANCELED) {
              Log.e("Barcode Result", "Result canceled");
          }
      }
  }
  </code></pre>
  
  <p><strong>Updated</strong> :I open ScanActivity like:</p>
  
  <pre><code>// start scan after button click
          btnScanQRCode.setOnClickListener(new OnClickListener() {
              public void onClick(View arg0) {
  
                   Intent intent = new Intent(
                   "com.google.zxing.client.android.SCAN");
                   intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
                   startActivityForResult(intent, 0);
  
              }
          });
  </code></pre>
  
  <p>Hope, i clear it to all. Waiting for your great knock. 
  Thank you.</p>