Android app to android apps from android browser

I have a link in my application:

http://mywebsite.com/pr-5

      

I want to do something, when the user opens this link in the browser, my application will start and open data with id 5.

as you can see i am sending id at the end of my url, i want to get id and show data in my app.

To do this, I added this code to my manifest:

<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.mywebsite.com"
            android:scheme="http" >
        </data>
    </intent-filter>

      

But when I enter my address in the browser, nothing happens.

could you help me?

+3


source to share





All Articles