마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

블루투스채팅에서 화면이동추가할때요...

0 추천

   @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?
 

로그쳇입니다.

 

냐냐얌 (400 포인트) 님이 2013년 3월 5일 질문

1개의 답변

0 추천

have you declared this activity in your AndroidManifest.xml?

 

매니페스트에 BluetoothChat2 Activity를 등록하지 않았다는 것 같습니다.

이라슈 (8,770 포인트) 님이 2013년 3월 5일 답변
...