본문 바로가기
[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] Ok Google [Android] Ok Google # 안드로이드 단말의 화면이 켜져 있거나, 충전 중이면 "Ok Google" 이라고 외쳐보자. Ok Google 이라고 외치면 마이크 interface 가 나오고, 음성을 분석해서 원하는 정보를 찾아준다. # 이 Ok Google 은 KitKat 이상의 버전에서 작동을 한다. Google Search app version 3.5 이상이 필요하며, 해당 앱의 setting 에서 "Ok Google" detection 을 "From any screen" 으로 하면 된다. # 만약 더 높은 인식률을 갖게 하려면, Audio History 를 켜는 것이 좋다. Audio History 를 켜고 "Ok google" 을 3번 외치면, 조금 더 높은 인식률을 보여준다. 만약 단말.. 2016. 4. 9.
[android] intent data filter - android:ssp xml attribute. [android] intent data filter - android:ssp xml attribute. https://chris.orr.me.uk/android-ssp-data-intent-filter - SDK 19 부터 android:sspPrefix, android:sspPattern 을 사용할 수 있다. - 예를 들어 내가 관심있는 것은 카카오톡의 설치 혹은 삭제여부인데, 기존과 같은 방식으로 broadcast receiver 를 등록하면 모든 앱에 대해서 받게 된다. -sspPrefix, sspPattern 을 사용하면 내가 관심있는 카카오톡에 대해서만 broadcast 를 받을 수 있다. ( cf, 카카오톡의 package 이름은 저것이 아닐 수 있다. ) -broadcast 뿐만 아니라 다른.. 2015. 12. 16.
[android] authenticator 관련 Tutorial [android] authenticator 관련 Tutorial 참조 : http://cranix.net/346 http://cranix.net/347 http://cranix.net/349 http://cranix.net/350 Authenticator Service - 안드로이드 설정의 Accounts & Sync 메뉴의 기능 제공을 위해서 필요하다. - @ Manifest - @ xml/authenticator.xml - @AuthenticationService.java public class AuthenticationService extends Service { @Override public void onCreate() { // TODO Auto-generated method stub } @Ove.. 2015. 12. 5.
[android] tv 앱 기본설정 [android] tv 앱 기본설정 - Intent-Filter 의 category 가 android.intent.category.LEANBACK_LAUNCHER 로 설정되어야 TV에서 아이콘이 나오게 된다. - style 의 경우 @style/Theme.Leanback 을 사용하거나 이것을 상속한 녀석을 사용해야 한다. @style/theme.leanback, Android, android.iintent.category.LEANBACK_LAUNCHER, basic setting, Category, intent-filter, setting, style, Theme, theme.leanback, tv app, tv 아이콘, tv 앱, [android] tv 앱 기본설정, 기본 설정, 안드로이드, 테마 2015. 12. 4.
[Android] activity-alias 태그를 사용하는 좋은 예. [Android] activity-alias 태그를 사용하는 좋은 예. 런처는 기본적으로 intent-filter 의 category 가 android.intent.category.LAUNCHER 로 등록된 녀석의 Activity Name 을 shortcut 과 mapping 시켜서 바탕화면에 바로가기 아이콘을 생성한다.( 기본적인 것으로 모든 런처 구현이 그렇다는 것은 아니다. ) 그래서 만약에 업데이트를 하면서 category LAUNCHER 로 지정했던 녀석의 이름이 바뀌게 되면,런처 구현에 따라 다르지만 보통 바로가기가 삭제되거나 혹은 아이콘은 존재하지만 "존재하지 않는 앱입니다." 와 같은 메세지를 보이며 연결이 제대로 되지 않는다. 그냥 기존의 바탕화면 아이콘을 제거하거나, 모든 프로그램에서 .. 2014. 6. 6.
[android] Linkify 를 이용하여 TextView 에 link 주기 android, Linkify 를 이용하여 TextView 에 link 주기 HashTag 예제 // Hash Tag 패턴Pattern tagMatcher = Pattern.compile("[#]+[A-Za-z0-9-_]+\\b"); // TextView 의 Link 를 눌렀을 때 연결할 uri 혹은 url base 주소String uri = "content://com.cklee.hashtags/"; // textview 에서 tagMatcher 에 matching 되는 녀석을 link 로 만들고, // 이녀석을 클릭하면 ACTION_VIEW 를 호출하면서 MIME type 을 uri + tag 로 생성된 scheme 으로부터 받아온다.Linkify.addLinks(textView, tagMatcher,.. 2014. 2. 20.
[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.
반응형