Android http URL scheme is not working when I try to launch my application from a link on my website -


i'm trying achieve have application launched (or fire open-in dialog) when link pointing http://example.com/123 on website clicked. in androidmanifest.xml added following activity register app 'http' links host 'example.com'. visits http://example.com/123 link , nothing happens other when touch on link.

<activity xmlns:android="http://schemas.android.com/apk/res/android"           android:name=".testactivity"           android:label="myapplication"> <intent-filter> <action android:name="android.intent.action.view" /> <category android:name="android.intent.category.default" /> <category android:name="android.intent.category.browsable" /> <data android:host="example.com" android:scheme="http" /> </intent-filter> </activity>  

also tried

android:pathpattern = ".*" 

or

android:pathpattern = "*" 

but none of them work. appreciate suggestions now.

try using pathprefix instead of pathpattern.

<intent-filter>     <action android:name="android.intent.action.view" />     <category android:name="android.intent.category.default" />     <category android:name="android.intent.category.browsable" />     <data          android:host="example.com"         android:scheme="http"         android:pathprefix="/"/> </intent-filter> 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -