Android日历活动

时间:2012-09-28 10:33:07

标签: android calendar scheduled-tasks reminders

我想编写一个在日历提醒发生时触发的应用程序。我也看了android开发者网站,并没有找到任何关于它

我想创造这样的东西(但它对我不起作用)。我怎么能这样做?

public class SchedulerSetupReceiver extends BroadcastReceiver {
    private static final String APP_TAG = "com.hascode.android";

    private static final int EXEC_INTERVAL = 20 * 1000;

    @Override
    public void onReceive(final Context ctx, final Intent intent) {
        Log.d(APP_TAG, "SchedulerSetupReceiver.onReceive() called");
        AlarmManager alarmManager = (AlarmManager) ctx
                .getSystemService(Context.ALARM_SERVICE);

        Calendar now = Calendar.getInstance();

    }

}

0 个答案:

没有答案