Intent filter pathPrefix with '#' not working

前端 未结 1 1806
甜味超标
甜味超标 2020-11-29 11:27

I\'m trying to set an intent filter to launch my activity when user clicks on the following URI: example.com/pathA/pathB/#pathC/someGUID

so I\'ve added the following

相关标签:
1条回答
  • 2020-11-29 11:48

    Intent filters use UriMatcher to parse URIs and determine if there is a match. # is the URI wildcard for a number as seen in examples in UriMatcher. Per the UriMatcher source code, there is no escape sequence to escape a # in a URI. Therefore you should use another, non-reserved symbol (note that * is also reserved as the wildcard for any text).

    0 讨论(0)
提交回复
热议问题