Inclusion of an abstraction layer around activity lifecycle callbacks to stay compatible with the oldest android versions.