开发者

Android:open app from browser

I need to open the my application from browser when some pattern matching url come,I have implement using Intercepting links from the browser to open my Android app .It is used for ur开发者_Python百科l only can it possible to open the app.I want to app when browser find the string like appname://id=102.

Thank you.

EDIT: please check out this code that i have use

<intent-filter >
                <category android:name="android.intent.category.BROWSABLE" />
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />

                 <data 
                  android:scheme="appname"
                />      
    </intent-filter>


You need to add an intent filter for an activity that contains a data tag. In the data tag you can set the scheme that you want to listen for. Something like this:

<intent-filter>
    <data android:scheme="appname" />
</intent-filter>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜