title: pass parameter to AsyncTask<String, Void, Void>
body: <p>I am build android app which is supposed to open barcode scanner screen and scan the barcode, then send the barcode string to a webservice. I have done barcode reading part, sending static strings to webservice. I am sending strings to webservice asynchronously.</p>
  
  <p>here is my code</p>
  
  <pre><code>public class AsyncCallWS extends AsyncTask&lt;String, Void, Void&gt; {
      @Override
      protected Void doInBackground(String... params) {
          try {
              execute__barcode_webservice();
          } catch (Exception e) {
              // TODO: handle exception
          }
  
          return null;
      }
  
      @Override
      protected void onPostExecute(Void result) {
  
      }
  
      @Override
      protected void onPreExecute() {
  
      }
  
      @Override
      protected void onProgressUpdate(Void... values) {
  
      }
  }
  </code></pre>
  
  <p>I need to pass two string to "execute__barcode_webservice()"</p>
  
  <p>This is how I call asynctask to send strings.</p>
  
  <pre><code> AsyncCallWS soap_object = x.new AsyncCallWS();
   soap_object.execute();
  </code></pre>
  
  <p>How do I pass two strings to soap_object and then to execute__barcode_webservice()</p>