0

I want to ask does android URI path segments support question marks? I have a url in the format

www.blah.com/test?foo=123

the matcher is something like

<data android:pathPattern="/test.*"/>

The URI returned is www.blah.com/test?foo=123 but when I call uri.lastPathSegments it only returns test and cuts off ?foo=123

Rahul Singh Chandrabhan
  • 2,531
  • 5
  • 22
  • 33
Rgfvfk Iff
  • 1,549
  • 2
  • 23
  • 47
  • https://stackoverflow.com/questions/40466217/how-can-i-get-parameters-from-url-in-android – ADM Mar 14 '19 at 03:52

2 Answers2

1

No, the ?foo=123 is not part of the URI path. It is called the query.
You should use uri.query or uri.getQueryParameter("foo") instead.

Simon Marquis
  • 7,248
  • 1
  • 28
  • 43
0

No, Deeplink uri not support question marks.

For more info. Please check link: https://developer.android.com/training/app-links/deep-linking