TabActivity中的按钮监听怎样向另一个Activity跳转
为了做选项卡的界面就继承了TabActivity,那TabActivity中的按钮监听怎样向Activity跳转啊?谢谢了
button2.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
finish();
Intent intent=new Intent(TabActivity.this/*所在界面*/,Activity.class/*跳转界面*/);
startActivity(intent);
}
});