@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if(D) Log.e(TAG, "+++ ON CREATE +++");
// Set up the window layout
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.main);
Button bt = (Button)findViewById(R.id.up1);//버튼을 찾아 객체화 함
bt.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent in = new Intent(BluetoothChat.this,BluetoothChat2.class);//인텐트를 객체화 하여 페이지 전환 이벤트를 부여함
startActivity(in);//인텐트를 시작하라는 명령어
}//callback END
});
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title);
// Set up the custom title
mTitle = (TextView) findViewById(R.id.title_left_text);
mTitle.setText(R.string.app_name);
mTitle = (TextView) findViewById(R.id.title_right_text);
// Get local Bluetooth adapter
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
// If the adapter is null, then Bluetooth is not supported
if (mBluetoothAdapter == null) {
Toast.makeText(this, "Bluetooth is not available", Toast.LENGTH_LONG).show();
finish();
return;
}
}
버튼클릭시 BluetoothChat2 로 이동하는걸썻는데 이동시 멈춰버리네요....
03-05 11:52:32.981: D/SensorManager(26881): registerListener :: handle = 0 name= K3DH Acceleration Sensor delay= 200000 Trklfufi 9 budiwrd5mrfo5WirfulblrwuFmfulTrklfufi$KfukwiFmfulTrklfufiRvht@,)+f*e.8
03-05 11:52:34.913: E/BluetoothChat(26881): + ON RESUME +
03-05 11:52:35.113: W/IInputConnectionWrapper(26881): getSelectedText on inactive InputConnection
03-05 11:52:35.113: W/IInputConnectionWrapper(26881): setComposingText on inactive InputConnection
03-05 11:52:43.481: D/AndroidRuntime(26881): Shutting down VM
03-05 11:52:43.481: W/dalvikvm(26881): threadid=1: thread exiting with uncaught exception (group=0x41706360)
03-05 11:52:43.481: E/AndroidRuntime(26881): FATAL EXCEPTION: main
03-05 11:52:43.481: E/AndroidRuntime(26881): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.android.BluetoothChat/com.example.android.BluetoothChat.BluetoothChat2}; have you declared this activity in your AndroidManifest.xml?
로그쳇입니다.