-
Notifications
You must be signed in to change notification settings - Fork 6
ShowOption
ShowOption allows you to specify how the alarm is to be shown.
Possible values include:
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.
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.
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.