Created
December 27, 2012 15:13
-
-
Save shakalaca/4389020 to your computer and use it in GitHub Desktop.
透過瀏覽 URL 的方式開啟特定 app, 如果 user 沒有安裝該 app, 則導引到 Play Store 提示使用者安裝.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Redirect /path_to_redirect market://details?id=com.example.package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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:host="server.to.redirect" | |
android:path="/path_to_redirect" | |
android:scheme="http" /> | |
</intent-filter> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment