问题是由以下行引起的:
Intent intent = new Intent(Events.this, AddEvent.class, null);
您应该使用可用的Public构造函数之一实例化Intent 。
在这种情况下,我建议使用
new Intent(view.getContext(), AddEvent.class);

问题是由以下行引起的:
Intent intent = new Intent(Events.this, AddEvent.class, null);
您应该使用可用的Public构造函数之一实例化Intent 。
在这种情况下,我建议使用
new Intent(view.getContext(), AddEvent.class);