Skip to content
Advertisement

Tag: query-parameters

Not able to get query paramter value using android.net.Uri#getQueryParameter

I’m trying to parse query parameters from a URL string using Uri.getQueryParameter(String key) but that method returns null for the passed-in key. That URL that I’m using is /endpoint/path?query1=foo&page[size]=1. I’m able to successfully get the value for query1 parameter but not for page[size](the method returns null for this key). My code looks like: As seen in the output of the

Advertisement