Difference between revisions of "Java 3"
From Teknologisk videncenter
(Created page with "==Notification Channel== <source lang="java> public void CreateNotificationChannel() { NotificationChannel channel = new NotificationChannel( "test",...") |
(No difference)
|
Latest revision as of 15:03, 30 January 2019
Notification Channel
public void CreateNotificationChannel() {
NotificationChannel channel = new NotificationChannel(
"test",
"test",
NotificationManager.IMPORTANCE_DEFAULT);
notificationManager = getSystemService(NotificationManager.class);
notificationManager.createNotificationChannel(channel);
}