I have settled on grouping similar definitions together into distinct Intent Filters. For example, grouping the same pathPattern with different schemes (http, https, file) into one Intent Filter and defining another Intent Filter for a different pathPattern with the same set of schemes. I haven't encountered any specific guidelines or documentation about this so I've gone with my own aesthetic preference.
The source of my difficulties appears to have been the limited functionality of pathPattern. After seeing the .*
explanation in the documentation, I had hoped pathPattern would accept other regex syntax but in practice it appears .*
really is the only option for any kind of flexibility.
Also, the often cited method for defining a file-type filter has a bug/limitation that I have not been able to find a way around or an explanation for: pathPattern=".*\\.xyz"
will work for "MyFile.xyz" but NOT for "My.File.xyz". I have since posted another question about this specific issue.