title: getIntent().getData() returns previous url in android
body: <p>I am trying to enable deep linking in my app . So my Intent- Filter looks like below</p>
  
  <pre><code>&lt;intent-filter&gt;
              &lt;data
                  android:host="*.showonthecloud.com"
                  android:scheme="http" /&gt;
              &lt;data
                  android:host="*.showonthecloud.com"
                  android:scheme="https" /&gt;
  
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
  
              &lt;action android:name="android.intent.action.VIEW" /&gt;                
              &lt;action android:name="android.intent.action.ALL_APPS" /&gt;
          &lt;/intent-filter&gt;
  </code></pre>
  
  <p>When clicking the url from other app (Gmail App) my app got opened.But get the previously clicked url. The implemented code is</p>
  
  <pre><code>Intent deepLinkIntent = getIntent();
  
  dataUri = deepLinkIntent.getData();
  </code></pre>
  
  <p>The printed value shows the previous one </p>
  
  <pre><code>Log.d(TAG, "Received url from intent :data uri==&gt;" +dataUri);
  </code></pre>
  
  <p>I got one link <a href="http://developer.appcelerator.com/question/153521/android-intent-getdata-returns-the-same-value" rel="nofollow">http://developer.appcelerator.com/question/153521/android-intent-getdata-returns-the-same-value</a>
  From this can't get any answer.</p>