Scheme ¼³Á¤ ½Ã, ¾ÛÀÌ ¾Èº¸ÀÌ´Â Çö»ó |
|
|
![](icon/private_name/1.gif) |
8³â Àü |
scheme¸¦ ÅëÇÏ¿© ¾ÛÀ» ½ÇÇàÇÏ°íÀÚ ÇÒ ¶§, AndroidManifest¿¡ ÁöÁ¤À» ÇØÁÖ´Â µ¥¿ä.
°©ÀÚ±â ¾Û ¾ÆÀÌÄÜÀÌ º¸ÀÌÁö ¾Ê´Â Çö»óÀÌ ¹ß»ýÇÕ´Ï´Ù.
ÀÌ·²¶© ´çȲÇÏÁö ¸»°í Ȥ½Ã ¾Æ·¡¿Í °°ÀÌ ¾²½ÃÁö ¾Ê¾Ò³ª¿ä?
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<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="callhost" />
</intent-filter>
À§¿Í °°ÀÌ intent-filter¿¡ MAIN°ú VIEW¸¦ °°ÀÌ °ãÃÄ ³õÀ¸½Ã¸é
VIEW·Î ÀνÄÀÌ µÇ¾î ¾ÛÀÌ ¼³Ä¡´Â µÇ¾úÁö¸¸ ¾ÆÀÌÄÜÀÌ º¸ÀÌÁö ¾Ê´Â °ÅÁÒ.
±×·¡¼ ¾Æ·¡¿Í °°ÀÌ µû·Î ÁöÁ¤ÇÏ½Ã¸é µË´Ï´Ù.
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<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="callhost" />
</intent-filter>
Âü°íÇϼ¼¿ä. |
|
̵̧ : 241 |
̵̧
¸ñ·Ï
|
|