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); 
            }
        });

 

相关文章:

  • 2022-01-01
  • 2022-02-28
  • 2021-10-10
  • 2022-12-23
  • 2021-08-30
  • 2021-05-24
  • 2022-12-23
  • 2021-08-19
猜你喜欢
  • 2021-08-12
  • 2022-01-01
  • 2022-01-01
  • 2022-01-01
  • 2021-10-08
  • 2022-01-26
  • 2022-12-23
相关资源
相似解决方案