title: Taking uri data through intent in android
body: <p>Hi i have to do connectivity between android app and browser. So while clicking a button on browser it should redirect to android app. in android activity i have written </p>
  
  <pre><code>Uri data = getIntent().getData(); 
          if (data.equals(null)) { 
              System.out.println("Data is null");
          } else { 
              String scheme = data.getScheme();
              System.out.println(scheme);
              String host = data.getHost(); 
              int port = data.getPort(); 
              List&lt;String&gt; params = data.getPathSegments();
              String first = params.get(0); // "hello"
              System.out.println(first);
  </code></pre>
  
  <p>and in manifest i have already given </p>
  
  <pre><code>&lt;intent-filter&gt;
                  &lt;data android:scheme="Integration" /&gt;
                  &lt;action android:name="android.intent.action.VIEW" /&gt;
                  &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
  </code></pre>
  
  <p>in html on button click i have given <code>&lt;FORM METHOD="LINK" ACTION="Integration://1"&gt;</code></p>
  
  <p>it is throwing a indexoutofboundexception.
  Please tell me where is the mistake</p>
  
  <p><strong>Updated</strong>
  *<em>I was unnecessarily using intent in an activity. By removing that n parameter in html5 my app is running successfully now.</em>*</p>