본문 바로가기
연락처 계정 생성시 OEM 에서 연락처에서 추가/편집 가능한 Field 정의 연락처 계정 생성시 OEM 에서 연락처에서 추가/편집 가능한 Field 정의 -먼저 Manifest 에 아래와 같이 SyncAdapterService 를 정의하면서meta-data 에 android.provider.CONTACTS_STRUCTURE 에 xml 을 정의해서 넣어준다.이 xml 을 OEM 등의 연락처 앱이 참조해서 필드 표시를 해준다 -xml format 은 developer 문서에 공식적으로는 찾을 수 없었고, AOSP 안의 test 앱에서 그 scheme 을 찾을 수 있었다. ( http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.0.3_r1/packages/apps/Conta.. 2019. 1. 17.
[android] App Shortcuts Tutorial [android] App Shortcuts Tutorial https://catinean.com/2016/10/20/exploring-android-nougat-7-1-app-shortcuts/ - -Android N ( Nougat ) 7.1 버전부터 사용 가능. -Shortcut 이 설정된 앱은 롱 프레스를 하면 위의 스샷처럼 바로가기 옵션이 나온다. -간단한 정리 특정 동작을 진입과 동시에 할 수 있다는 것이 키 포인트 static 과 dynamic shortcut 2가지 종류가 있다. static 은 xml 에 정의하여 앱 안에 내용이 정의되어 있다. ( 수정하려면 앱 수정 및 재배포를 해야 한다. ) dynamic 은 Runtime 에 바꿀 수 있다. shortcut 으로 앱을 열 때 activ.. 2018. 2. 25.
[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] facebook sdk applicationId cannot be null [Android] facebook sdk applicationId cannot be null If you encounter error message "applicationId cannot be null" then.. add following code to your manifest. where app_id can be found at the facebook app page. android facebook sdk, applicationid, applicationId cannot be null, facebook app, facebook sdk, meta-data, SDK, [Android] facebook sdk applicationId cannot be null 2014. 7. 29.
[android] Up Navigation 설정하기. android, Up Navigation 설정하기. Up Navigation 설정하기 1. manifest 에서 parent 로 지정한다. 4.1 이상에서는 activity tag 에 android:parentActivityName 를 적용하면 된다. 4.0 이하에서는 meta-data 를 통해 설정해준다. 2. actionbar 설정을 바꿔준다.( up 을 지원하도록 ) getActionBar().setDisplayHomeAsUpEnabled(true); 3. Navigate up 하기. NavUtils.navigateUpFromSameTask() 를 통해서 할 수 있다. 이것이 불리면 현재 Activity 는 종료되면서 stack 의 상단에 있는 녀석이 호출된다. 이 때 FLAG_ACTIVITY_CL.. 2013. 12. 19.
java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must have the following declaration within the <application> element: <meta-data android:name="co.. java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must have the following declaration within the element: 2013. 11. 14.
[android] TaskStackBuilder Tutorial android TaskStackBuilder Tutorial API Level 11 이상에서는 ( 3.0 / HoneyComb ) back key 를 통한 navigation convention 이 바뀌었다.back key 의 behavior 는 현재 task 에서의 조작만을 의미하고, 다른 task 로의 이동은 없다.이전 task로의 inter task 이동은 "recents" 를 통해서 가능하다. android 3.0 이후에서 한 task stack 에서 다른 task 로 이동하는 경우, 어플리케이션은 back stack 과 history 를 융합시켜서 유저가 back 키 여러번 눌러 launcher 로 나갈 수 있게 해야 한다. back key 를 눌러서 다른 task 로 이동하면 안된다. Task.. 2013. 10. 27.
[android] Google Map V2 manifest 설정 안드로이드, Google Map V2 manifest 설정 1. Permission 정의 2. Permission 설정 3. uses-feature 설정 4, Application Tag 에 Map API KEY 설정 2.0, 20000, access_coarse_location, access_fine_location, Android, android:protectionlevel, API KEY, application tag, com.google.android.maps.v2.api_key, com.google.android.providers.gsf.permission.read_gservices, glesversion, google map v2, internet, manifest, meta-data, per.. 2013. 10. 24.
[android] Google Map Android API V2 에 대하여.. Google Map Android API V2 참조 : https://docs.google.com/presentation/d/1IqHXiaLBSWiQb0Nc47YFk3_7NMfeaVfh4UiUIwVlzDQ/edit?pli=1 V2 의 특징 * MapFragment 지원* API Key 관리 용이해짐* 오버레이 클래스 생성하지 않고 마커 추가 가능, 마커 커스터마이징 및 말풍선(infowindow) 기능 지원. V2 사용하기 1. Google Play Services SDK rev3 이상 필요. ( SDK Manager 를 통해 설치 가능 ). /extras/google_play_services/libproject/google-play-services_lib 의 내용을 import 시킴 2. Applica.. 2013. 7. 13.
반응형