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:
- how implement own uri scheme on android 4 answers
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
Post a Comment