public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button btn=(Button)findViewById(R.id.button1);
        btn.setOnClickListener(new Button.OnClickListener(){
         @Override
         public void onClick(View v) {
         // TODO Auto-generated method stub
          Intent i=new Intent(page.this,page2.class);
          startActivityForResult(i, 0);
         }
        });
//        Intent i=new Intent(this,page2.class);
//        startActivity(i);
    }这是page1的页面
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.page2);
}page2页面
问题是main.xml是主页面
page2.xml是我自己创建的一个xml页面
现在在page1中点击button想实现跳转到page2页面
但是一点击就报错,
难道是我创建的页面有问题 页面的xml与类 未实现关联?setContentView(R.layout.page2);