Reputation: 545
my app launches on clicking a link.
But there is additional information that the link contains which my app wants.
The link is something like this :
http://update_app_config.com?parameter1='value1'¶meter2='value2'¶meter3='value3'
can I get an object of key,value pair which contains the parameter and values or do I have to parse it myself?
Thanks
Upvotes: 0
Views: 73
Reputation: 1006539
getIntent().getUri()
will return a Uri
object representing the link used to launch your app. You can then call methods like getQueryParameterNames()
and getQueryParameters()
to access the query parameters (stuff to the right of the ?).
Upvotes: 1