title: IBM Worklight 6.1 - How to get Intent data in Javascript?
body: <p>I have made an application where an activity is browsable. I followed the same code as <a href="https://stackoverflow.com/questions/2958701/launch-custom-android-application-from-android-browser">here.</a></p>
  
  <p>In Android code I can easily can get the URL from where it was redirected.</p>
  
  <pre><code>Uri data = getIntent().getData();
  String scheme = data.getScheme(); // "http"
  String host = data.getHost(); // "twitter.com"
  List&lt;String&gt; params = data.getPathSegments();
  String first = params.get(0); // "status"
  String second = params.get(1); // "1234"
  </code></pre>
  
  <p>How can I get this Intent data to JavaScript? Is there an easy way?<br>
  I am working with Worklight 6.1, that works with Cordova 3.1.</p>