On 26 Okt., 08:55, Kumar Bibek <[email protected]> wrote: > I am a bit confused as to under what circumstances one would like to handle > the Home Screen button.
As said, the most common use I stubled upon are lock screen "widgets" (usually rather Activities with FLAG_SHOW_WHEN_LOCKED). Esp. if such a screen actually disables the lock screen (FLAG_DISMISS_KEYGUARD), it's not that nice the Home button is still active and thus the "alternative screen lock" can be dismissed with a single button. (The active notification bar is another problem, but it's not that likely to invoke unwanted actions by accident, since it has to be pulled down in the first place.) Another reason is to do some cleanup work, like stopping services, when the app was deliberately left, i.e. unlike onPause(), which is also invoked when some sub activity or e.g. the lock screen or the phone app appears. Most users don't get that Android's design differs between whether the app was left with Back or Home, and so don't several developers. Or they just accept that a majority of users doesn't. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

