Android Deep linking using explicit intent -


currently having 2 web pages, home , about. about deep link in ,so when click on link , android gives me option use browser or own app open link. explicitly open link in app.i don't want list of apps handle it. is possible? below code:

androidmanifest.xml

    <activity         android:name=".aboutpage"         android:label="@string/about_page">         <intent-filter android:label="@string/filter_name">             <action android:name="android.intent.action.view"/>             <category android:name="android.intent.category.default"/>             <category android:name="android.intent.category.browsable"/>             <data android:scheme="http"                   android:host="appindexing.robscv.info"                   android:pathprefix="@string/abouthtml"/>         </intent-filter>     </activity> 

aboutpage.java

public class aboutpage extends actionbaractivity {  protected void oncreate(bundle savedinstancestate){     super.oncreate(savedinstancestate);     setcontentview(r.layout.about_page);      // enable "up" button more navigation options     getsupportactionbar().setdisplayhomeasupenabled(true);      onnewintent(getintent());  }  protected void onnewintent(intent intent){     string action = intent.getaction();     string data = intent.getdatastring();     log.d(action, data); } } 

in short. no

but

its coming. feature scheduled release in android m.

all have add manifest

<intent-filter android:label="@string/filter_name" android:autoverify="true">    //...categories etc </intent-filter> 

more info here


just fyi deep link directly app , if multiple apps on users phone autoverify throw prompt.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -