본문 바로가기
반응형

Total List134

프로세스별 메모리 사용량 추적/분석 ----------------------------------------------------- - ■ 관련 명령어 요약 (아래 상세 설명에서 나오는 명령어들) ----------------------------------------------------- adb shell cat /proc/meminfo adb shell procrank -p adb shell top -m 10 -s cpu adb shell dumpsys meminfo 242 ----------------------------------------------------- - ■ procrank and top ----------------------------------------------------- adb shell procrank.. 2014. 5. 26.
call by reference vs call by pointer. c 에 개념에서 함수 파라미너 선언은 call by reference / value 를 사용하고, c++ 로 넘어 오면서 call by pointer 가 추가되어 call by pointer / reference / value 를 사용합니다.하지만 c에서 사용하던 call by reference 개념이 c++의 call by pointer 개념과 같으며 reference의 개념이 조금 달라졌습니다. pointer를 주소에 의한 전달이라고하면,reference의 경우 참조에 의한 전달이라고 합니다. pointer / reference 차이가 있다면, (pointer는 알고 계시리라 믿고~)reference의 경우 함수 내부에서 일반 변수와 같이 포인터 연산자(*, &) 없이 사용하며, 포인터 연산(ptr+.. 2014. 2. 12.
Uri 세팅방법. // Basic Uri set// example// http://foo.com/someservlet?param1=foo&param2=barUri uri = new Uri.Builder() .scheme("http") .authority("foo.com") .path("someservlet") .appendQueryParameter("param1", "foo") .appendQueryParameter("param2", "bar") .build(); 2014. 2. 12.
TextView 취소선 SourceTextView someLabel = (TextView) findViewById(R.id.some_label);someLabel.setText("Aldiko Book Reader"); someLabel.setPaintFlags(someLabel.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); StringResource Aldiko Book Reader 2013. 6. 17.
반응형