edit - How to add exception urls for action.VIEW in Android -
in manifest file i've made sure whenever link website clicked , intent created action_view
, app among suggestions user link should opened with. can choose between chrome , app.
now, how add url not want app open, want chrome open right away (without asking user choose between chrome , app)
for instance, want preserve code below, modify exclude "mywebsite.com/promotion" being openable app
<activity android:name=".mainactivity"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> <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="mywebsite.com" android:scheme="http" /> <data android:host="mywebsite.com" android:scheme="https" /> </intent-filter> </activity>
edit has been suggested answer here might help: exclude few urls deeplinking
but doesn't because particular case, doesn't apply in situation
it's not possible, intent-filter allow specify matching url (white list), there no exclusion mechanism (black list).
by way question has been answered : how exclude urls android intent filters?
Comments
Post a Comment