I want to open the application when user enter a url. I saw this for an application. For example, if some one enter this url in the browser, a dialog opens and ask user to open the application or browser .
This is my code but it's not working :
Manifest :
<activity
android:name="ir.mywebsite.goblin.FistActiivty"
android:label="@string/app_name" >
<intent-filter>
<data android:scheme="http" android:host="mywebsite.ir"/>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
This is the url that I enter in the browser but nothing happens.
http://mywebsite.ir/p-120
the 120 is the id that I want to get in my application and shows the data but first I need to open my application when the url is opened.
How can I do so ?
Thanks