title: How to set Alarm using alarm clock class
body: <p>Hi I am trying to set Alarm in my application Using the AlarmClock class. I am using the code as follows:</p>
  
  <pre><code> Intent intent = new Intent();
   intent.setAction(AlarmClock.ACTION_SET_ALARM);
   startActivity(intent);
  </code></pre>
  
  <p>But I am getting an exception. Can anyone please tell how to use this new Android feature?</p>