Class: HardwareButtonsWakeState

HardwareButtonsWakeState

new HardwareButtonsWakeState()

We enter this state when the user presses Home or Sleep on a sleeping phone.

We enter this state when the user presses Home or Sleep on a sleeping phone. We give immediate feedback by waking the phone up on the press rather than waiting for the release, but this means we need a special state so that we don't actually send a home or sleep event on the key release. Note, however, that this state does set a timer so that it can send holdhome or holdsleep events. (This means that pressing and holding sleep will bring up the power menu, even on a sleeping phone.)

Source:

Events

holdhome

When the user holds Home button more than HOLD_INTERVAL.

When the user holds Home button more than HOLD_INTERVAL.

Source:

holdsleep

When the user holds Sleep button more than HOLD_INTERVAL.

When the user holds Sleep button more than HOLD_INTERVAL.

Source: