Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; import android.provider.AlarmClock; public class Main { public static void setAlarm(Context context) { Intent alarmas = new Intent(AlarmClock.ACTION_SET_ALARM); alarmas.putExtra(AlarmClock.EXTRA_MESSAGE, "New Alarm"); alarmas.putExtra(AlarmClock.EXTRA_HOUR, 10); alarmas.putExtra(AlarmClock.EXTRA_MINUTES, 30); context.startActivity(alarmas); } }