Ekeon
Android DeelLink
아래처럼 설정해줌.
<intent-filter> <action android:name="android.intent.action.MAIN"/>
<span class="nt"><category</span> <span class="na">android:name=</span><span class="s">"android.intent.category.LAUNCHER"</span><span class="nt">/></span>
</intent-filter> </activity>
<activity android:name=".DeepLinkActivity" android:screenOrientation="portrait" android:label="@string/app_name">
<intent-filter> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.DEFAULT"/> <category android:name="android.intent.category.BROWSABLE"/>
<span class="c"><!--android-app://com.ekeon.deeplink/ekeon/main--></span>
<span class="nt"><data</span> <span class="na">android:scheme=</span><span class="s">"ekeon"</span>
<span class="na">android:host=</span><span class="s">"main"</span><span class="nt">/></span>
</intent-filter> </activity>
DeepLinkTest 들어가서 android-app://{package}/{scheme}/{host}/{path} 형식으로 넣어준다.
ex) android-app://com.ekeon.deeplink/ekeon/main
@Override protected void onCreate() { Intent intent = getIntent();
<span class="n">Intent</span> <span class="n">goHomeActivity</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Intent</span><span class="o">(</span><span class="k">this</span><span class="o">,</span> <span class="n">HomeActivity</span><span class="o">.</span><span class="na">class</span><span class="o">);</span>
<span class="n">startActivity</span><span class="o">(</span><span class="n">goHomeActivity</span><span class="o">);</span> <span class="c1">// 핸들링 해주면된다</span>
} }