Darshan Bidkar
Darshan Bidkar

Reputation: 545

get additional info from the link which launched my app

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'&parameter2='value2'&parameter3='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

Answers (1)

CommonsWare
CommonsWare

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

Related Questions