Activity的切换

Activity的切换:

Button btn = (Button) findViewById(R.id.jump_btn);
  btn.setOnClickListener(test_view);
 }

 private Button.OnClickListener test_view = new Button.OnClickListener() {

  @Override
  public void onClick(View v) {
   Intent in = new Intent();
   in.setClass(MainActivity.this, Act1.class);
   startActivity(in);
  }
 };

posted @ 2012-12-28 15:23  枕头君  阅读(161)  评论(0编辑  收藏  举报