Intent intent = new Intent();
intent.setClass(ErrorPageActive.this, LoginActive.class);
startActivity(intent);
就这么简单,如果要把一个页面的参数带到另一个页面,则需要
Bundle bundle = new Bundle();
bundle.putString("USERNAME", et_username.getText().toString());
intent.putExtras(bundle);
自定义adapter跳转到activity
holder.relative.setOnClickListener(new OnClickListener(){ @Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent intent = new Intent();
intent.setClass(context,HomeActivity.class);
v.getContext().startActivity(intent);
Toast toast=Toast.makeText(context, "点击内容标题触发事件!", Toast.LENGTH_SHORT);
}
});