2011년 2월 26일 토요일

안드로이드 - Activity(액티비티) 추가

1. AndroidManifest.xml 파일클릭, 하단에 Application 탭 클릭
2. Add 에서 Activity 선택
3. Attribute 에서 "Name*" 클릭
4. java 파일 생성
5. 메인 java 파일에서 버튼 생성 후 엑티비티 호출 소스 추가

final Button button1 = (Button)findViewById(R.id.button1);
button1.setOnClickListener(new OnClickListener() {
    public void onClick(View v) {
        Log.i( "onClick", "Call Sub Activity" ); // 로그기록
        Intent i = new Intent(메인엑티비티클레스이름.this, 추가된엑티비티클레스이름.class);
        startActivity(i);
    }
});

안드로이드 - 버튼 클릭 이벤트

1. 해당 레이아웃 xml에서(그래픽모드) 버튼 추가 (android:id="@+id/button1" <= 버튼 ID값)
2. 해당 java 파일에서 버튼 이벤트 할당 소스추가

final Button button1 = (Button)findViewById(R.id.button1);
button1.setOnClickListener(new OnClickListener() {
    public void onClick(View v) {            
        button1.setText("버튼 텍스트를 변경했다.");
    }
});

2010년 11월 3일 수요일

기타 - 애자일 이야기 블로그에서 읽을만한 내용 링크

http://agile.egloos.com/4790896 : 애자일 도입에 대한 팀장과 사장의 대화


http://agile.egloos.com/5026291 : 쉬운 코드가 장땡인가


http://agile.egloos.com/4570504 : 나는 앞으로 뭐 해먹고 사나?


http://agile.egloos.com/5187747 : 11월 Xper 정모 후기 (부제 : 탁월한 팀장의 비밀)


http://agile.egloos.com/5265969 : 그 사람이랑은 말이 안통해요


http://agile.egloos.com/5299932 : 애자일 도입 성공 요인 분석


http://agile.egloos.com/5359401 : 성공적인 채용 면접의 공공연한 비결


http://shinvee.egloos.com/3926542 : TDD 진행하면서 느낀점


http://agile.egloos.com/5263014 : 이것도 모르세요?


http://agile.egloos.com/5252946 : 우리가 피드백을 대하는 자세

2010년 7월 16일 금요일

Python - Python 2.4 버전에서 SimpleXMLRPCServer allow_none 문제

Python 2.4 버전에서

SimpleXMLRPCServer 사용해서

클라이언트에서 실행시

'cannot marshal None unless allow_none is enabled'

위 와 같은 메시지가 나온다면

python 라이브러리에서 xmlrpclib.py 열어서

allow_none 부분을 찾아서 값을 1 로 변경해주면 된다.


* 참고로 2.5 버전에서는 fix 됬다고 함