I m making adapter to adapt my book collection to be visible in list view.
Issue is solved if I add super(context, position):
public BookAdapter(Context context, int position, List <Book> updatedBooksList) {
super(context, position);
this.context = context;
this.booksList = updatedBooksList ;
}
However, I want to know why I need this argument (int position) and call superclass constructor?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Also, in the broader sense why do we always(?) need to call super.onCreate like here in every onCreate?
Aren't we supposed to override all our activity lifecycle stages - onPause, onREsume, onStop, OnDestroy, yet we still have to call super's in each of them?