开发者

Can't dispatch DDM chunk 52454151: no handler defined error

开发者 https://www.devze.com 2023-03-18 21:02 出处:网络
This code is not work properly. Button button = (Button)findViewById(R.id.button_start); button.setOnClickListener(new OnClickListener() {

This code is not work properly.

  Button button = (Button)findViewById(R.id.button_start);
  button.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            Intent intent = new Intent(TestActivity.this,Lession1.class);
            startActivity(intent);
        }
    });

and

开发者_StackOverflow中文版    public void onClick(View v) {
            // TODO Auto-generated method stub
            Intent intent = new Intent(Lession1.this,TestActivity.class);
            startActivity(intent);
        }
    });

Error: Can't dispatch DDM chunk 52454151: no handler defined error


you are created double application and it can not calling each other. if you want to create activity 1 to 2 you have to user onResume() method for exit that activity.

0

精彩评论

暂无评论...
验证码 换一张
取 消