title: pass two parameters with URL link in android
body: <p>i have problem with two parameters passing with URL link. Can anyone help me?</p>
  
  <pre><code>private void FillDetails(String _userid,int _sporttype) {
      al_TeamName=new ArrayList&lt;String&gt;();
  
      try{
          spf=SAXParserFactory.newInstance();
          sp=spf.newSAXParser();
          xr=sp.getXMLReader();
          URL sourceUrl = new URL(
          "http://10.0.2.2:2291/acd.asmx/Get_Teams?_userid ="+_userid &amp; "_sporttype="+ _sporttype);
          MyHandler mh=new MyHandler();
          xr.setContentHandler(mh);
  
          xr.parse(new InputSource(sourceUrl.openStream()));
          setListAdapter(new MyAdapter());
  
  
      }
      catch(Exception ex)
      {
  
      }
  }
  </code></pre>
  
  <p>when i using this code, i am getting null.If i send single parameter then it works fine.
  Is this correct procedure for URL passing two parameters?</p>
  
  <p>Thanks in advance..........</p>