title: How to listen for a custom URI
body: <p>I am working on an application which has its own URI prefix. (dchub:// in this case)</p>
  <p>Searching all over and read a lot but I got a bit confused.</p>
  <p>Is it possible to start my application when someone clicks on a link starting with <code>dchub://</code> in the browser?</p>
  <p>So far found a lot of examples the other way around opening the browser from your app but that's not what I'm looking for.</p>
  <h2>Update</h2>
  <p>Thanks a lot, I've figured that, now I'm a bit stuck in the next part.</p>
  <pre><code>Uri data = getIntent().getData(); 
  if (data.equals(null)) { } else { 
      String scheme = data.getScheme(); 
      String host = data.getHost(); 
      int port = data.getPort(); 
  }
  </code></pre>
  <p>I got some <code>nullpointerexception</code>s if I start the app normally, it works fine if I open from the webpage. So I thought lets include some check for nullvalue but that didn't solve it. any suggestions how I can start the app just by selecting it?</p>