How do i make a android app that can be used as a default program for opening certain kind of link -


this question has answer here:

okay,like title said, want make android app can used default application opening kind of link (like if click http://facebook.com show me suggested app open link, browser or facebook's app)

these called implicit intents

assume want open app on web link click link "myapp://someapp"

then in app manifest

<activity android:name="myactivity">     <intent-filter>         <action android:name="android.intent.action.view" />         <category android:name="android.intent.category.default" />         <category android:name="android.intent.category.browsable" />         <data android:scheme="myapp" android:host="path" />     </intent-filter> </activity> 

whenever click above link, suggest open app.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -