Since API level 9 (2.3) you can set an alarm using an intent:
Intent i = new Intent(AlarmClock.ACTION_SET_ALARM);
i.putExtra(AlarmClock.EXTRA_HOUR, 9);
i.putExtra(AlarmClock.EXTRA_MINUTES, 37);
startActivity(i);
Is there anyway of setting an alarm in a similar fashion (undocumented APIs?) for lower API levels?
Also if anyone knows any similar methods for non-stock alarmclocks (such as ones listed here I.E. HTC Alarm Clock, Moto Blur Alarm Clock etc...) I'd greatly appreciate it.
Chances are the shortest interval you can set between alarms on your device's built-in clock, calendar, or reminder app is 24 hours. But there are some haphazard workarounds. On Android, you can tweak your phone's snooze duration to have an alarm sound as often as every 30 minutes.
In all my further research I could find no way of doing so, so I assume the answer is NO until proven otherwise.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With