startActivity(intent);改为getContext().startActivity(intent);即可 另外:调用finish(); ((Activity)getContext()).finish();