Skip to content
Mark Taylor edited this page Mar 10, 2014 · 4 revisions

ShowOption allows you to specify how the alarm is to be shown.

Possible values include:

None

On Alarm trigger the activity will only show if the screen is on, otherwise it will be visible when the screen is next switched on and unlocked.

WakeScreen

On Alarm trigger the screen will be switch on if it is not screen locked. Note that if the device has a screen lock enabled, nothing obvious will occur - the activity will be visible the next time that user unlocks the screen.

ShowOverLockScreen

On Alarm trigger the screen will switch on even if the screen is off and/ or the screen lock is on. This will generally be the best option for alarm clock type applications.

Note that the screen will stay on until such time as it is closed.

Also note that because the alarm is shown over the screen lock, it is important not to allow the user to get to sensitive information for this alarm Activity.

Clone this wiki locally