Android implementation of lifecycle methods can call the superclass implementation after doing any work?
问题 In the Android documentation we have: Note: Your implementation of these lifecycle methods must always call the superclass implementation before doing any work... But I have seen cases where the code is placed after the superclass method, especially for methods like onPause(), onStop(), onDestroy(), for example: @Override protected void onPause() { LocalBroadcastManager.getInstance(this).unregisterReceiver(mMessageReceiver); super.onPause(); } http://www.vogella.com/articles