본문 바로가기
[android] PackageManager 와 ActivityManager. 그리고 Intent 이야기 안드로이드, PackageManager 와 ActivityManager. 그리고 Intent 이야기 PackageManager 이야기. PackageManager 는 폰이 최초 실행될 때 system/app, data/app 등의 위치를 검색하며 APK 파일들의 매니페스트 파일을 조사해 intent 에 관련된 내용들을 모두 system 에 등록시켜 놓는다. 새롭게 패키지가 추가되거나 삭제될 때 발생하는 broadcast intent 를 수신하여 등록된 정보를 갱신하는 일도 수행한다. ActivityManager 이야기 ActivityManager 는 인텐트를 수신받으면 PackageManagerService 를 통해 Intent 에 부합하는 컴퍼넌트 정보를 다져온다. 그 다음 해당 컴퍼넌트의 상태 정보와.. 2013. 11. 8.
[android] ImageView ScaleType Tutorial android, ImageView Scale Type Tutorial ImageView ScaleType matrix ImageView 의 틀을 기준으로 왼쪽 상단을 꼭지점으로 표시된다.이미지가 resize 되지 않는다. fit_xy ImageView 의 틀에 딱 맞추어 이미지를 resize 하여 보여준다.찌그러져 보일 확률이 높다. fit_start ImageView 의 틀에 맞게 비율을 조정하되, 이미지 시작점을 상단에 맞춘다.가로 세로 중 먼저 fit 되는 쪽 기준으로 표시가 된다.이미지가 ratio 가 유지된다. fit_center ( default value ) ImageView 의 틀에 맞게 비율을 조정하되, 이미지 시작점을 중단에 맞춘다.가로 세로 중 먼저 fit 되는 쪽 기준으로 표시가 된.. 2013. 11. 7.
[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] pulltorefreshlistview both side setting. android, pulltorefreshlistview both side setting. both, both side, PTR, ptr:ptrMode="both", ptrmode, pulltorefreshlistview, setting, xmlns:ptr="http://schemas.android.com/apk/res-auto", [android] pulltorefreshlistview both side setting. 2013. 11. 5.
[android] intra app communication method statistics. ( localbroadcastmanager, eventbus, otto ) android, intra app communication method statistics. ( localbroadcastmanager, eventbus, otto ) Android, eventbus, intra app communication, Listener, local broadcast listener, localbroadcastmanager, Other, OTTO, otto ), statistics, [android] intra app communication method statistics. ( localbroadcastmanager, 안드로이드, 앱 내부 통신, 통계 2013. 11. 4.
[android] Bitmap too large to be uploaded into a texture android, Bitmap too large to be uploaded into a texture ImageView 등에 Bitmap 을 표시할 때 사이즈 제한이 있다.다음 에러 메세지를 보면 알 수 있는데, 필자가 decoding 하여 ImageView 에 올리려 했던 것은 4288 x 2848 사이즈. 그러나 maximum 은 4096 x 4096 사이즈까지만 가능하다. Bitmap too large to be uploaded into a texture (4288x2848, max=4096x4096) 참고하여 만약 bitmap 사이즈가 4096 x 4096 보다 크다면,미리 sample size 를 조절하여 사이즈를 조절하여 decoding 하거나,아니면 디코딩 후 resize 를 하여 ImageV.. 2013. 10. 31.
[android] view 기본 click 소리 내는 방법. 안드로이드, view 기본 click 소리 내는 방법. VIew attribute 설정 먼저 view 가 sound effect 를 낼 수 있는 조건을 만들어야 한다.code ( programatically ) 로도 만들 수 있고, xml 로도 만들 수 있다. android:soundEffectsEnabled="true" view.setSoundEffectsEnabled (true ); 소리 내기 view.playSoundEffect( SoundEffectConstants.CLICK ); Android, android:soundeffectenabled, attribute, Click, CODE, condition, playsoundeffect, Programatically, setsoundeffecten.. 2013. 10. 30.
[android]The library 'lombok2.jar' contains native libraries that will not run on the device. Android, The library 'lombok2.jar' contains native libraries that will not run on the device. [En] I have encountered following error message after adding lobmok library. The library 'lombok2.jar' contains native libraries that will not run on the device.The following libraries were found: - com/sun/jna/darwin/libjnidispatch.jnilib - com/sun/jna/freebsd-amd64/libjnidispatch.so - com/sun/jna/free.. 2013. 10. 28.
[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.
반응형