简体   繁体   中英

Android custom URL scheme with query string values

myappname://action?=login

The above lines works fine in some cases and some times not.

Then i referred android:intent:// method

My URL scheme becomes

intent://scan/#Intent;scheme=myappname;package=mypackagename;end

it is working fine; but i need to pass querystring values as well

action?=login

Please share your ideas

Is it necessary for you to use queries?
Why not include the query data in the uri like this : intent:/action/login/#Intent;scheme=myappname;package=packagename;end
or
myappname://action/login ?

From the documentation it looks like you can't specify the query parameter in the filter, but you might be able to access the whole uri programatically with getData() on the intent itself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM