feelouttheform.net
Activity: forget onPause to handle focus changes - Feel out the Form
You may be tempted to use onPause to handle focus loss of an activity. Such an error! It is better to use onWindowFocusChanged.