开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜