Android: Detect when a Widget has gained/lost focus
<p>What's the best way to detect when a Home Screen Widget has gained or lost focus? An example of losing focus is if the user navigates to another screen or if another screen popped up in front of the Widget.</p>
