title: where is alarm clock functionality in android?
body: <p>I am writing a reminder app and obviously it needs alarm clock functionality. Features like "repeat on sun, mon, fri", play recorded audio as alarm, play text as briefing would be nice to have. Instead of reinventing the wheel, it would be convenient to have my app call the activity that provides this functionality.</p>
  
  <p>If I wanted to set a basic alarm, I would simply pass in the millisec to set() in AlarmManager in the android API. For more complex functionality as described above, it is not available as part of the API. I cannot run or test against an imaginary 3rd party provider.</p>
  
  <p>However, AlarmClock in android does have these features but unfortunately is simply an empty class with constants
  <a href="http://developer.android.com/reference/android/provider/AlarmClock.html" rel="nofollow">http://developer.android.com/reference/android/provider/AlarmClock.html</a> </p>
  
  <p>DeskClock source code is here
  <a href="https://android.googlesource.com/platform/packages/apps/DeskClock/+/master/src/com/android/deskclock/" rel="nofollow">https://android.googlesource.com/platform/packages/apps/DeskClock/+/master/src/com/android/deskclock/</a>
  but it is not in the API to call into.</p>
  
  <p>Also, importing as an android project into Eclipse gives over 100 compile errors</p>
  
  <pre><code>Description Resource    Path    Location    Type
  TimePickerDialog cannot be resolved AlarmUtils.java /DeskClock/src/com/android/deskclock    line 61 Java Problem
  The method onPageSelected(int) of type DeskClock.TabsAdapter must override or implement a supertype method  DeskClock.java  /DeskClock/src/com/android/deskclock    line 409    Java Problem
  The method showTimeEditDialog(FragmentManager, null, AlarmClockFragment, boolean) is undefined for the type AlarmUtils  AlarmClockFragment.java /DeskClock/src/com/android/deskclock    line 1677   Java Problem
  The method showTimeEditDialog(FragmentManager, Alarm, AlarmClockFragment, boolean) is undefined for the type AlarmUtils AlarmClockFragment.java /DeskClock/src/com/android/deskclock    line 1055   Java Problem
  </code></pre>
  
  <p>Can one reuse existing alarm clock functionality in android?</p>