Hi I am trying to set Alarm in my application Using the AlarmClock class. I am using the code as follows:
Intent intent = new Intent();
intent.setAction(AlarmClock.ACTION_SET_ALARM);
startActivity(intent);
But I am getting an exception. Can anyone please tell how to use this new Android feature?
You'll also need to add
<uses-permission android:name="com.android.alarm.permission.SET_ALARM"/>
to your manifest.