[Java] ExecutorService

Executor 제출된 Runnable task를 실행하는 객체. ExecutorService 하나 이상의 비동기 task의 진행상태를 추적하기위한 Future를 생성하는 메소드 를 제공하는 Executor. ExecutorService 예제[1] 간단한 ExectorService 사용법. ExecutorService »

[Android] Avoid passing null as the view root

LayoutManager로 직접 View를 생성할때 가끔 이런 경고를 볼 수 있다. LayoutInflater는 View를 생성할때 자신의 레이아웃을 잡기위해 부모 View가 필요하다. 이때 부모 View를 알려주지 않으면 (null을 넘기면) »

안드로이드 LayoutInflater 사용하기

안드로이드에서 레이아웃 XML파일을 View객체로 만들기 위해서는 LayoutInflater를 이용한다. LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View view = inflater.inflate(R.layout.my_layout, parent, »

지니모션에서 로컬호스트 서버 접근하기

Accessing a localhost server from the Genymotion Android emulator 안드로이드 에뮬레이터인 제니모션(Genymotion)을 사용하다가 로컬에서 돌리 서버에 접속할 일이 생겼다. 제니모션은 버츄얼박스를 이용해서 에뮬레이터를 사용하기때문에 »

안드로이드 시간 측정

성능 측정 long startTime = getCurrentTime(); // do something long endTime = getCurrentTime(); Log.d(DEBUG, "elapsedTime : " + (endTime - startTime)); 일반적으로 성능을 측정할때는 어떤 기능을 수행하는데 걸리는 »