본문 바로가기
[android] Browser 로부터 Share intent 받아 처리하기 [android] Browser 로부터 Share intent 받아 처리하기 https://paul.kinlan.me/sharing-natively-on-android-from-the-webhttps://developer.chrome.com/multidevice/android/intents -IntentFilter 를 아래와 같은 형태로 작성한다 -Browser 에서 Share 버튼을 눌렀을 때 다음과 같은 format 으로 url 을 작성한다.intent:#intent;action=android.intent.action.SEND;type=text/plain;S.android.intent.extra.SUBJECT=testSubject;S.android.intent.extra.TEXT=testText;en.. 2019. 2. 2.
[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.
[ios] EXC_BAD_ACCESS 디버그 & NSZombie [ios] EXC_BAD_ACCESS 디버그 & NSZombie -다음과 같은 경우에 EXC_BAD_ACCESS 가 발생한다. 1. object 가 initialize 되지 않았다. 2. object 가 이미 release 되어 있다. 3. 그 외… (이 경우는 주로 발생하지 않는다.) -EXC_BAD_ACCESS 디버그는 NSZombie 를 enabling 함으로써 쉽게 접근할 수 있다. 1. XCode 에서 [Product] 메뉴 -> [Scheme] -> [Edit Scheme…] 2. Run 의 [Diagnostics] 탭으로 가서 [Enable Zombie Objects] 를 체크한다. 이렇게 하면 Release 된 object 들이 NSZombie 로 잡혀서 debug 하기가 쉽다. debug.. 2017. 12. 12.
[android] Notification 에 meta data 를 추가하자 https://plus.google.com/+AndroidDevelopers/posts/7QBWvNXs2mD -기존 안드로이드의 Notification 은 importance 와 timestamp 만 보고 ordering 을 했다. -Android 5.0 ( LOS ) 부터는 ordering 을 결정하는 데 영향을 미치는 meta data 들이 추가되었다. -ordering 에 영향을 미치는 녀석 중 하나는 addPerson 을 통한 사람의 추가이다. -addPerson 은 CONTENT_LOOKUP_URI, tel:, mailto: 이 셋 중의 하나의 scheme 을 Uri 형태로 받는다. 이 정보를 기반으로 연락처 정보를 찾는다.이 찾은 결과는 not found, match found, starred.. 2017. 8. 24.
[android] Uri.getQueryParameter 에 # 들어가면 제대로 파싱 못합니다. [android] Uri.getQueryParameter 에 # 들어가면 제대로 파싱 못합니다. #안쪽 소스를 들여다보면 어떻게 작동하는지 알 수 있다. #static String parsePath(String uriString, int ssi) { int length = uriString.length(); // Find start of path. int pathStart; if (length > ssi + 2 && uriString.charAt(ssi + 1) == '/' && uriString.charAt(ssi + 2) == '/') { // Skip over authority to path. pathStart = ssi + 3; LOOP: while (pathStart < length) { swi.. 2017. 5. 15.
[Django] 파이썬 웹 프로그래밍 - 파이썬 웹 표준 라이브러리 [Django] 파이썬 웹 프로그래밍 - 파이썬 웹 표준 라이브러리 - 책을 읽으며 Remind 하는 내용, 핵심 내용, 모르던 내용을 정리한 것입니다. 예문 및 자세한 설명은 책을 구매하여 보세요~ - 파이썬을 설치하면 기본적으로 같이 설치되는 표준 라이브러리가 있는데, 크게 웹 클라이언트 프로그래밍이냐 웹 서버 프로그래밍이냐에 따라 사용하는 라이브러리 모듈이 달라진다. - urllib 패키지에는 웹 클라이언트를 작성하는 데 사용되는 모듈들이 있으며, 가장 빈번하게 사용하는 모듈이다. http 패키지는 크게 서버용과 클라이언트용 라이브러리로 나누어 모듈을 담고 있고, urllib 에 비해 저수준의 API 를 제공한다. - 서버 프로그래밍에서는 http.cookie, .. 2016. 12. 8.
[iOS Study] 웹 서비스와 UIWebView [iOS Study] 웹 서비스와 UIWebView 출처 : 아론 힐리가스의 iOS 프로그래밍 -NSURL URL 포맷에 웹 프로그램의 위치를 담고 있다. URL 은 여러 웹 서비스를 위해 기본 주소, 통신하고 있는 웹 프로그램, 전달 인자로 구성된다. https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/ -NSURLRequest 웹 서버와 통신할 때 필요한 모든 데이터를 가진다. NSURL 객체와 캐시 정책, 웹 서버의 응답 제한 시간, HTTP 프로토콜을 통해 전달되는 추가 데이터 등을 가진다. NSMutableURLRequest 는 NSURLRequest 의 변경 가능한 .. 2016. 3. 15.
[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.
반응형