闹钟程序被关闭,闹钟设置继续使用的处理

if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {     AlarmManager aMgr = (AlarmManager) cx.getSystemService(Context.ALARM_SERVICE);     PendingIntent pi = PendingIntent.getBroadcast(cx, 0, new Intent(cx, ScheduleReceiver.class), 0);     aMgr.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, Thoth.Settings.ALARM_TRIGGER_AT_TIME, Thoth.Settings.ALARM_INTERVAL, pi); }

你可能感兴趣的:(android)