Java 安卓-通知没有出现
我正在尝试使用AppCompat内部片段创建通知。 我什么也看不见 代码:Java 安卓-通知没有出现,java,android,Java,Android,我正在尝试使用AppCompat内部片段创建通知。 我什么也看不见 代码: 尝试将最后一位改为: NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.notify(0, builder.build()); NotificationManager notific
尝试将最后一位改为:
NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(0, builder.build());
NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(0, builder.build());