错哪了啊啊啊啊
package com.example.vv;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class fActivity extends Activity {
private Button bt1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
bt1=(Button)findViewById(R.id.button1);
//注册点击事件
bt1.setOnClickListener(new OnClickListener()){//这错了
@Override
public void onClick(View v)//这错了
Intent intent=new Intent(fActivity.this,sActivity.class);
startActivity(intent);
}
}
}