< 인텐트필터 개념 참조 >




어플리케이션을 실행시킬 html 페이지의 링크


<a href = "testapp://test"> 실행 </a>





Manifest의 실행시키고 싶은 액티비티에 intent-filter 추가



           <intent-filter>

                <action android:name="android.intent.action.VIEW" />


                <category android:name="android.intent.category.LAUNCHER" />

                <category android:name="android.intent.category.BROWSABLE" />

                <category android:name="android.intent.category.DEFAULT" />


                <data

                    android:host="test"

                    android:scheme="testapp" />

            </intent-filter>





시작 액티비티 실행시키기



            <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.BROWSABLE" />

                <category android:name="android.intent.category.DEFAULT" />

                <data

                    android:host="test"

                    android:scheme="testapp" />

            </intent-filter>





Posted by tenn
,