|
|
@ -37,7 +37,7 @@ public class AlarmReceiver extends BroadcastReceiver {
|
|
|
|
// 添加FLAG_ACTIVITY_NEW_TASK标志,确保在非Activity上下文(如BroadcastReceiver)中可以启动Activity
|
|
|
|
// 添加FLAG_ACTIVITY_NEW_TASK标志,确保在非Activity上下文(如BroadcastReceiver)中可以启动Activity
|
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
|
|
|
|
|
|
|
|
// 启动闹钟提醒界面
|
|
|
|
// 启动闹钟提 醒界面
|
|
|
|
context.startActivity(intent);
|
|
|
|
context.startActivity(intent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|