public class AycanClass extends AsyncTask<String, Void, String> implements IAppointments {
Activity activity;
public AycanClass(Activity activity){
this.activity = activity;
}
@Override
protected void onPostExecute(String result) {
super.onPostExecute(result);
activity.setFilters(value);
}
}
现在在我的 MainActivity 类中,我有这样的方法。
public void setFilters(String result){
}
我无法调用此方法。
The method setFilters(result) is undefined for the type Activity