Hello. There is an 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="myhost" android:pathPattern="/feed/.*" android:scheme="http" /> <data android:host="myhost" android:pathPattern="/feed/.*" android:scheme="https" /> <data android:host="myhost" android:pathPattern="/feed/.*" android:scheme="http" /> <data android:host="myhost" android:pathPattern="/feed/.*" android:scheme="https" /> </intent-filter> He catches diplinks, everything is fine, but it is required to run any links from inside the application bypassing intent-filter. Here is the standard code:
val browserIntent = Intent(Intent.ACTION_VIEW, Uri.parse(url)) browserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) context.startActivity(browserIntent) It invokes the application selection window, but this list contains my application from which this intent was launched. How to remove it from there?
putExtra- then the browser will open with one MY application - Flippy