Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting an alarm (as in alarm clock) using intents

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.

like image 335
stealthcopter Avatar asked Apr 09 '11 00:04

stealthcopter


People also ask

Can you set an alarm for every 30 minutes?

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.


1 Answers

In all my further research I could find no way of doing so, so I assume the answer is NO until proven otherwise.

like image 149
stealthcopter Avatar answered Sep 20 '22 23:09

stealthcopter