Let\'s say we have a base class:
public abstract class BaseFragment extends Fragment {
...
protected abstract boolean postExec();
...
}
The easiest solution would be to add the method with a stubbed implementation. Declaring it abstract requires non-abstract extensions to implement the method.
Doing something like this would ease your compilation problems, though it will obviously throw exceptions when used without overriding:
public abstract class BaseFragment extends Fragment {
protected boolean doSomethingNew() {
throw new NotImplementedException("method not overridden");
}
}