Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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>
- val browserIntent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
- browserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
- context.startActivity(browserIntent)
Add Comment
Please, Sign In to add comment