I need to know if there is ever an instance when onResume
will be called before onCreate
has been called at least once. Thanks.
Edit: Judging b
I had an issue in which overridden onCreate was not getting called. I tried debugging and logging and i found oncreate not getting called.
Turns out that i override wrong onCreate
@Override
public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
super.onCreate(savedInstanceState, persistentState);
}
This is the correct one.
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
Posting in the hope that it might help some poor soul. :)
So the correct onCreate() will always get called before onResume