Issue in launching Android application from web browser
<p>I have opened an android application from web browser. Here is my code</p>

<pre><code>In Android manifest.xml 



&lt;activity
            android:name=".activities.authentication.IntentLauncherActivity"
            android:screenOrientation="portrait" &gt;
            &lt;intent-filter &gt;
                &lt;data
                    android:host="test.mobi"
                    android:path="/appLauncher"
                    android:scheme="http" /&gt;

                &lt;action android:name="android.intent.action.VIEW" /&gt;

                &lt;category android:name="android.intent.category.DEFAULT" &gt;
                &lt;/category&gt;
                &lt;category android:name="android.intent.category.BROWSABLE" &gt;
                &lt;/category&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
</code></pre>

<p>In IntentLaucherActivity.java</p>

<pre><code> protected void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                Uri data = getIntent().getData();
                String type = data.getQueryParameter(Constants.kLaunchType);
                String passPhrase = data.getQueryParameter(Constants.kPassphrase);
                String userId = data.getQueryParameter(Constants.kUsernameKey);
                Map&lt;String, Object&gt; _details = new HashMap&lt;String, Object&gt;();
                _details.put(Constants.kPassphrase, passPhrase);
                _details.put(Constants.kUsernameKey, userId);



if (type.contains(Constants.kForgotPasswordType)) {


                 startActivity(new Intent(IntentLauncherActivity.this,forgetPasswordActivity.class));
            }else if(type.contains(Constants.kVerifyAccountType)){

                     startActivity(new Intent(IntentLauncherActivity.this,MobileVerificationActivity.class));
            }
            finish();
    }
</code></pre>

<p>Problem for me is when i open the app from the browser it goes to the  MobileVerification activity,but when i press home button and then relaunch the app from the background it does not show the mobile verification activity, but instead it shows the activity when i launch the webview to open the app. Can anyone  help me with this?</p>
