본문 바로가기
[android] browser 에서 link 클릭했을 때 app selection 없이 내 앱으로 연결하기 (app link) -Browser 에서 link 클릭했을 때 App 으로 연결하는 기능(App 이 실행되는 기능)을 “App Links” 라고 부른다. -App Links 를 사용하기 위해서는 아래와 같은 설정이 필요하다. 1. intent-filter tag 에 속성으로 android:autoVerify=“true” 를 넣어준다. Intent filter 로 android.intent.action.VIEW 를 action 으로, android.intent.category.BROWSABLE 를 category 로 설정해준다. scheme으로 http, https 둘 다 설정해준다. 그리고 host 등의 specific 한 주소를 넣어준다. 2. assetlinks.json 파일을 해당 웹 페이지가 존재하는 web doma.. 2019. 2. 1.
[android] Browser 의 링크를 통해 내 앱 실행시키기 android, Browser 의 링크를 통해 내 앱 실행시키기 Declare Intent-filter on Manifest The activity which wants to be started has to have action name "android.intent.action.VIEW".Additionally, it has two basic category; they are android.intent.category.DEFAULT and android.intent.category.BROWSABLE.To link the url to the activity, intent-filter has to have data and it declares one or some of followings : scheme, .. 2013. 11. 6.
[android] Intent Filter 를 이용하여 link 처리하기. 안드로이드, Intent Filter 를 이용하여 link 처리하기. 간혹가다 보면, 일반 url 을 클릭했을 뿐인데 Google Map Activity 가 뜨는 것을 본 적이 있을 것이다. 분명 link 를 클릭했다면 브라우저가 떠야 하는데 말이다. 사실 브라우저가 해당 link 를 처리하는 것보다는 Map App 에서 처리하는 것이 훨씬 효율적이라는 것은 모두가 공감할 것이다. 그럼 특정 상황 & link 에 대해서 앱이 이를 처리하게 하려면 어떻게 해야할까? 답은 제목에서도 알 수 있듯이 intent filter 를 이용하여 처리할 수 있다. 위와 같이 BROWSABLE 로 category 를 두어 link 를 가로챌 수 있도록 해주고, data 에 scheme, host, pathPrefix 등을.. 2013. 9. 19.
반응형