mardi 26 décembre 2017

How can I use android pathPattern in intent filter?

I trying to figure out about simple glob to satisfy my needs but no success.

I want pass "https://mydomain/users/123" but not pass "https://mydomain/users/user_identity/123"

Any of pathPattern I use cannot satisfy my requirement.

val mPatternMatcher = PatternMatcher("http://ift.tt/2DW6Hfy", PatternMatcher.PATTERN_SIMPLE_GLOB)
        Log.e("====", mPatternMatcher.match("http://ift.tt/2pFWSzm").toString())
        Log.e("====", mPatternMatcher.match("http://ift.tt/2DUmZWi").toString())

Any one can help?

Aucun commentaire:

Enregistrer un commentaire