android - Is it possible to add extras to browsable intents from HTML -


let's take per following manifest:

<intent-filter>     <data scheme="myscheme"           host="myhost">     </data>     <action name="android.intent.action.view">     </action>     <category name="android.intent.category.default">     </category>     <category name="android.intent.category.browsable">     </category> </intent-filter> 

i launch activity under above intent filter declared redirecting browser to:

myscheme://myhost?param1=param1&param2=param2 

however, i'm struggling understanding if possible same redirection, additional extras received programmatically with:

myextra = getintent().getstringextra('myextra') 

any appreciated.

this how overcome issue,

i developed own browser , made browsable do

uri data = getintent().getdata();  if(data == null) { // opened app icon click (without link redirect)     toast.maketext(this, "data null", toast.length_long).show(); } else { // opened when link clicked (with browsable)     toast.maketext(this, "data not null", toast.length_long).show();     string scheme = data.getscheme(); // "http"     string host = data.gethost(); // "twitter.com"     string link = getactualurl(host);     webview.loadurl(link);     toast.maketext(this,"scheme : "+scheme+" , host : "+host+ " ",toast.length_long).show(); } 

i think looking functions

data.getqueryparameter(string key);


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -