안드로이드 개발 질문/답변
(글 수 45,052)
안녕하세요!!
제가 메인 Activity에서 다른 activity 로 화면을 전환 하려고 합니다.
근데 아무리해도 안되네요 ㅠㅠ
버튼을 눌렀을때 화면이 전환 되도록 하는 건데요...
buttonChat = (Button) findViewById(R.id.chat);
buttonChat.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
try {
Intent intent = new Intent();
intent.setClass(Sipdroid.this, org.sipdroid.sipua.ui.BluetoothChat.class);
startActivity(intent);
} catch (ActivityNotFoundException e) {
}
}
});
버튼을 누르면 아무런 반응도 일어나지 않네요 ㅠㅠ
위처럼 하는 것 말고 또 다른 뭔가를 해줘야 하는 건가요? ㅠㅠ 저좀 도와주세요!!! ㅠㅠ