-
Notifications
You must be signed in to change notification settings - Fork 101
CyanogenMod Alarm Clock
Matt Garnes edited this page Aug 6, 2015
·
4 revisions
We have added support for querying and manipulating alarms within the CyanogenMod DeskClock application from the CM Platform SDK.
See the CyanogenModAlarmClock class for documentation about the alarm clock functionality.
To create a new alarm, call createIntent(context) to construct an Intent with the set alarm action. Then, specify the time and other options following the instructions for the extras referenced in the set alarm action.
Intent intent = CyanogenModAlarmClock.createAlarmIntent(CMAlarmClockTest.this);
intent.putExtra(AlarmClock.EXTRA_HOUR, 13);
intent.putExtra(AlarmClock.EXTRA_MINUTES, 35);
intent.putExtra(AlarmClock.EXTRA_MESSAGE, "Test from third party!");
intent.putExtra(AlarmClock.EXTRA_SKIP_UI, true);
startActivityForResult(intent, 0);