IntentFilter filter = new IntentFilter(); filter.addCategory(Intent.CATEGORY_DEFAULT); filter.addAction(Intent.ACTION_VIEW);
: If your website uses versioning in the URL (e.g., /v1/user/123 and /v2/user/123 ), you can use /v.*/user/.* to capture both. android pathpattern
pathPattern is . If your pattern is /profile/.* , and your URL is /Profile/user1 , the link will not trigger. There is no "case-insensitive" flag. If your backend generates mixed-case URLs, your manifest must account for them explicitly or you must handle the normalization in code. IntentFilter filter = new IntentFilter(); filter
PathPattern matching is done at the system level and is fairly efficient for simple patterns. However, overly greedy patterns like .* can slow down matching if you have many intent filters. Keep patterns as specific as possible. There is no "case-insensitive" flag
In standard Regular Expressions, if you want to match the start of a string, you use ^ . In Android pathPattern , the matching is implicitly anchored to the beginning of the path string.
Example: