title: Is there anyway to send the scanned QR code results directly to the server?
body: <p>I have developed an <strong>android app for scanning QR Codes</strong> and send it over the server.
  In this app i am getting multiple QR code scanned results in a list-view using an array list and sending them to the server on a button click event.
  <strong>The requirement is to send all the scanned QR-code results directly to the
  server without using any of the events e.g button click or something like that.</strong>
  Here i am using zxing QR scanner using intent. Below is the code for getting the QR-code scan result.</p>
  
  <pre><code>       @Override
         public void onActivityResult(int requestCode, int resultCode, Intent intent) {
         if (requestCode == SCANNER_REQUEST_CODE) {
          // Handle scan intent
          if (resultCode == Activity.RESULT_OK) {
              // Handle successful scan
              String contents = intent.getStringExtra("SCAN_RESULT");
              String formatName = intent.getStringExtra("SCAN_RESULT_FORMAT");
              byte[] rawBytes = intent.getByteArrayExtra("SCAN_RESULT_BYTES");
              int intentOrientation = intent.getIntExtra(
                      "SCAN_RESULT_ORIENTATION", Integer.MIN_VALUE);
              Integer orientation = (intentOrientation == Integer.MIN_VALUE) ? null
                      : intentOrientation;
              String errorCorrectionLevel = intent
                      .getStringExtra("SCAN_RESULT_ERROR_CORRECTION_LEVEL");
  
              QRContent = contents;
              QR_Receivd.setText(QRContent);
              listItems.add(QRContent); //adding scan result to an array list(listItems)
  
          } else if (resultCode == Activity.RESULT_CANCELED) {
              // Handle cancel
          }
  
       //On-click method to initiate scan.
  
       @Override
      public void onClick(View v) {
      if (v.getId() == R.id.btScan) {
      Intent intent = new Intent("com.google.zxing.client.android.SCAN");
      intent.putExtra("SCAN_MODE", "SCAN_MODE");
      startActivityForResult(intent, SCANNER_REQUEST_CODE);
     }  
   }
  </code></pre>
  
  <p>So instead of using on-click event <strong>i want to send the scanned result    directly to a server immidiately after getting the result from the  scanner.
      Thanks!!!</strong></p>