1. 如果你是在click事件里面跳转的话,可以使用下面的方法:
public View.OnClickListener OnClickListener= new View.OnClickListener() {
public void onClick(View v) {
Activity currentActivity = (Activity) v.getContext();
Intent i = new Intent(currentActivity, ScreenTransitionLab.class);
currentActivity.startActivity(i);
}
};