發表文章

目前顯示的是有「google」標籤的文章

Deep Linking

在使用手機、平板瀏覽 google 查詢結果時,若該連結可以直接導向手機已安裝的 app, 那會是怎樣的體驗呢? 現在有許多 app 相繼支援 google Deep Linking,增加使用者對 app 的黏著度, 如 google+、twitter,你的 app 也可以唷。 怎麼作呢? 我這邊稍作簡介,詳細可至 Android Deep Link 參考。 主要在 AndroidManifest.xml 加上 intent-filter 標籤, 範例: <activity android:name="com.recipe_app.client.RecipeActivity"           android:label="@string/app_name" >     <intent-filter android:label="@string/app_name">         <action android:name="android.intent.action.VIEW" />         <category android:name="android.intent.category.DEFAULT" />         <category android:name="android.intent.category.BROWSABLE" /> <!-- Accepts URIs that begin with "http://recipe-app.com/recipe" -->         <data android:scheme="http"               android:host="recipe-app.com"               android:pathPr...