title: How to retreive or display the information after you scan the QR code?
body: <p><strong>MainActivity.class:</strong></p>
  
  <pre><code>@Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);
          if (result != null) {
              if (result.getContents() == null) {
                  Toast.makeText(this, "Result Not Found", Toast.LENGTH_LONG).show();
              } else {
                  try {
                      //converting the data to json
                      JSONObject obj = new JSONObject(result.getContents());
                      Toast.makeText(this, obj.getString("id"), Toast.LENGTH_LONG).show();
                  } catch (JSONException e) {
                      e.printStackTrace();available on the qrcode
                      Toast.makeText(this, result.getContents(), Toast.LENGTH_LONG).show();
                  }
              }
          } else {
              super.onActivityResult(requestCode, resultCode, data);
          }
      }
  </code></pre>
  
  <p>How can I get the data into a MySQL database, when a QR code is scanned?</p>