代码:
String myChannelId = "myChannel_01";
String myChannelName = "myChannel";
NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
Notification notification = null;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
NotificationChannel channel = new NotificationChannel(myChannelId, myChannelName,
NotificationManager