본문 바로가기
[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] how can I detect if notification clear button is clicked? android, how can I detect if notification clear button is clicked? [En] Very easy.When you make Notification instance, just add delete intent with setDeleteIntent() method. private Notification getNotification( Context context, Intent intent, String pushMessage ){int notiCount = Application.getNotiMessageCount();NotificationCompat.Builder builder = new NotificationCompat.Builder(context).setSmal.. 2013. 10. 16.
[android] at GingerBread device GCM register returns SERVICE_NOT_AVAILABLE android, @ GingerBread device, GCM register returns SERVICE_NOT_AVAILABLE [En] java.io.IOException: SERVICE_NOT_AVAILABLEat com.google.android.gms.gcm.GoogleCloudMessaging.register(Unknown Source) Even though GCM register function returns SERVICE_NOT_AVAILABLE, registration process is actually done well. You can check the registration id, a.k.a. device token, via Broadcast Receiver with followin.. 2013. 10. 15.
[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.
[android] Launcher( HomeScreen ) 에 shortcut( 바로가기 ) 생성하기 Launcher( HomeScreen ) 에 Shortcut( 바로가기 ) 생성하기 폰을 처음켰을 때 나오는 어플.소위 말하는 HomeScreen 이라 부르는 녀석의 본래 이름은 Launcher ( 런처 ) 이다. 이 런처에 Shortcut 을 추가하는 코드를 설명한다. Manifest 에 권한설정 저 권한이 있어야만, 해당 앱에서 Launcher 에 Shortcut 을 설치( Install ) 하라는 명령을 내릴 수 있다.참고로, 일반적인 규칙을 따른 런처는 저 INSTALL_SHORTCUT 을 구현했겠지만,간혹가다 개인이 만든 런처의 경우 이 녀석을 구현 안 하는 경우도 있다. Shortcut 추가를 구현하지 않은 Custom Launcher 를 사용하면서, "이 코드를 따라했는데 왜 무작정 안돼?".. 2013. 6. 24.
[android] Manifest 의 VersionCode 정보 코드로 가져오기 Manifest의 VersionCode 정보 코드로 가져오기 Manifest의 VersionCode 는 App 을 Release 할 때 Version 명시용으로도 사용되고,Google Play 에 APK Release 를 할 때 비교 코드로도 사용된다. 간혹 자체 서버를 운영하며, 그 서버와 통신하는 형태의 앱이라면서버의 API 변경 등에 따라 App 의 Update 를 권하기 위해서도 Version Code 비교는 사용될 수 있다. Manifest 에 명시된 VersionCode 를 가져오는 방법은 다음과 같다. try{return getPackageManager().getPackageInfo( PACKAGE_NAME, PackageManager.GET_META_DATA ).versionCode;}ca.. 2013. 6. 14.
[android] manifest 에 명시된 app version 가져오기 이것도 매우 쉽다. String appVersion = getPackageManager().getPackageInfo(getPackageName(), 0).versionName; 단, getPackageInfo() 라는 녀석은 NameNotFoundException 을 뿜어내니 요 녀석만 try-catch 로 잡아주면 되겠다. 도움이 되셨다면 손가락 꾸욱~ ( 로그인 필요 x ) 2013. 1. 3.
[android] listview select(click) highlight 제거 방법. listview select(click) highlight 없애는 방법. 아주 심플합니다. manifest 의 listview 속성에 다음을 추가해줍니다. android:listSelector="@android:color/transparent" 도움이 되셨다면 손가락 꾸욱~ ( 로그인 필요 x ) 2012. 11. 23.
반응형