问题 I am trying to (at least partially) determine when an application gets closed by the user to release some connections, etc. To do this, I am using the ProcessLifecycleOwner with my application class implementing LifecycleObserver . Despite taking the starting code from tutorials and other helpful articles, it does not seem to detect any lifecycle events. Most of the code came from this example. My application class: public class App extends Application implements LifecycleObserver { @Override