android.net.uri getQueryParameterNames() alternative

Viewed 7304

I'm looking for an alternative way to get the query parameter names from an android.net.Uri. getQueryParameterNames() require api level 11. I'd like to do the same for any lower level api. I was looking at getQuery() which will return everything after the '?' sign. Would the best way to go about this be to parse that string and search for everything before an '=' and capture that? I simply do not know what query parameters will be presented every time.

4 Answers
Related