I am looking for a solution so far, i.e When user clicks on a link from his mail box My Application should open if My Application is already installed in his device without asking user to choose options with Just Once and Always .For example, clicking a URI in an email from a bank might result in a dialog asking the user whether to use the browser, or the bank's own app, to open the link, But in my case my application should open directly without asking to choose any option. I have implemented my application as follows: My manifest file as AndroidManifest.xml
<activity android:name=".WelcomeActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.VIEW"></action>
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.BROWSABLE"></category>
<data android:host="www.example.com"
android:scheme="http"
android:pathPrefix="/blog"></data>
</intent-filter>
</activity>
My example url is http://www.example.com/blog
I would like to open my application if user clicks on above link. Please help me with sample code with steps.