본문 바로가기
[종로] 비누방울 아저씨 - 아저씨 힘내요. [종로] 비누방울 아저씨 - 아저씨 힘내요. #종로의 장통교는 종종 공연의 무대가 되곤 한다.기타를 들고 와서 노래부르는 개인 또는 밴드가 종종 있다.그러나 그런 음악 공연보다 나는 이 비누방울 아저씨 공연이 가장 좋다. #이 아저씨 내가 이직하고 초반에 봤을 때는 그냥 뭔가 연습하러 나온 아저씨처럼..별다른 말도 안 하고 그냥 멀뚱히 서 있다가 사람이 지나가면싸악~ 만세를 하며 비누방울을 날리곤 했다. 그럼 사람들도 싸악~ "오오~" 하다가 이어지지 않는 퍼포먼스에 그냥 뚱하니 지나가곤 했다. ㅋㅋㅋ #죵빠이의 이야기에 따르면 이 아저씨 맨날 비누방울 제대로 못 만들고,큰 비누방울 만들기는 자주 실패한다고 한다. ㅋㅋ #그런데도 자주 와서 공연도 한다.처음 본지 거의 1년이 지난 것 같은데 요즘은 많이.. 2016. 1. 13.
[android] Binder 와 Death Recipients 에 대한 이해 [android] Binder 와 Death Recipients 에 대한 이해 안드로이드는 기본적으로 multi-task 를 위해 만들어진 앱이다. 그래서 초창기에는 user 가 명시적으로 process 를 죽이지 못하도록 만들고, main activity 를 종료했을 때는 아주 낮은 priority 로 계속 process 를 살려둔다. 왜 그렇게 하냐? app switching 이 일어날 때 process 를 처음부터 만들려고 하면 너무 많은 시간이 들기 때문이다. 그럼 process 들을 유지함으로서 메모리가 부족하면 어떻게 하냐? 해당 process 를 최소한의 정보를 보존한 후 죽인다. 그리고 해당 process 가 다시 launch 되면 최소한의 정보를 통해 어느 정도 선까지는 상태복구를 해준다.. 2015. 12. 29.
[android] Thread Scheduling 에 대한 이야기 [android] Thread Scheduling 에 대한 이야기 -Thread 에는 priority 값을 주어 CPU 사용량을 조절할 수 있다. ( Process#setThreadPriority( int ), Thread#setPriority( int ) ) 이 Priority 에 들어가는 값은 Nice value 라 부르는데, 다른 Thread 에 대해 얼마나 Nice 한가를 나타내는 값이다. Nice 값이 높다는 것은 다른 Thread 에게 많이 양보하는 착한(?)놈이라는 의미. 즉 Nice 값이 높을수록 우선순위가 낮아 CPU 활용이 적어진다. - Android 에서는 Main ( UI ) Thread 가 우선순위가 보통 가장 높아야 한다. BG 에서 도는 Thread 들의 Nice Value 가.. 2015. 12. 22.
[android] Activity Configuration Change Simulation. [android] Activity Configuration Change Simulation. https://developer.android.com/reference/android/app/Activity.html#recreate%28%29 Activity 의 recreate() 함수를 호출하면 된다. public void recreate ()Added in API level 11Cause this Activity to be recreated with a new instance. This results in essentially the same flow as when the Activity is created due to a configuration change -- the current instance w.. 2015. 12. 14.
[android] VideoView 를 사용하는 경우 progress hide timing. [android] VideoView 를 사용하는 경우 progress hide timing. 참조 : https://plus.google.com/+ArneStockmans/posts/FFE8PrWiPyq -API Level 1 부터 사용할 수 있는 VideoView 라는 녀석이 있다.http://developer.android.com/reference/android/widget/VideoView.html -MediaPlayer 의 내용물을 Rendering 시키는 SurfaceView 를 상속한 녀석이다. -SDK 17 부터는 OnInfoListener 를 달아놓으면, 실제 Rendering 이 시작될 때 What 으로 MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START 가 .. 2015. 12. 10.
[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] Shadow effect with custom shapes [android] Shadow effect with custom shapes 출처 : https://slothdevelopers.wordpress.com/2014/05/22/shadow-effect-with-custom-shapes/ Custom 한 버튼을 만드는 xml 정의이다. Custom 한 Shadow 와 Custom 한 버튼 모양을 만들기에 좋다. Android, Bottom, COLOR, Corner, custom button, custom shape, custom 버튼, Example, ITEM, layer-list, Left, Radius, Right, sample, selector, Shadow, shadow effect, Shape, Solid, state_pressed, Top, xm.. 2015. 12. 3.
[android] ART 의 GC 이야기. [android] ART 의 GC 이야기. http://commonsware.com/blog/2014/06/16/art-garbage-collection.html ART 의 GC 는 아직은 아니지만, Compacting garbage collector 를 추구한다. 기존의 JVM 은 memory 의 fragmentation 이 되 있을 때 마지막 연속된 여유로운 공간에 대해 새로운 memory 할당을 시도하고, 그것이 실패하면 OutOfMemoryError 를 뿜어낸다. 하지만 Compacting garbage collector 에서는 이 fragmentation 을 해결하여 GC 하기 때문에fragmented 된 부분을 포함하여 정말 메모리가 부족할 때 OutOfMemoryError 를 뿜는다. 다시말.. 2015. 12. 2.
[android] login test 를 쉽게 하자! [android] login test 를 쉽게 하자! adb 는 신비롭다.현재 focus 를 가지고 있는 edittext 에 adb 로 input 도 가능하다. adb shell input text [typing]adb shell input keyevent 66 // enteradb shell input text [typing] 위의 typing 부분에 각각 id, password 를 넣으면 쉽게 login 테스트를 할 수 있다. batch 파일로 만들어서 로그인 할 때마다 실행하면 손쉽게 로그인 시킬 수 있다. 몰론.. debug 개발시에는 그냥 id, password 를 코드에 상수로 박아도 되지만,이렇게 adb 로 입력할 수 있다는 것을 안다는 것은 다른 곳에도 활용할 수 있어 알아야 할 지식 중 .. 2015. 12. 1.
반응형