app/src/main/java/com/michael/bci/BciService.java
private void createNotificationChannel() {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            NotificationChannel serviceChannel = new NotificationChannel(
                    CHANNEL_ID,
                    "BCI_1",
                    NotificationManager.IMPORTANCE_LOW
            );
            NotificationManager manager = getSystemService(NotificationManager.class);
            if (manager != null) {
                manager.createNotificationChannel(serviceChannel);
            }
        }
    }
/* Create a Notification channel and set the importance */
Create a Notification channel and set the importance
Create a Notification channel and set the importance
private void createNotificationChannel() {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            NotificationChannel serviceChannel = new NotificationChannel(
                    CHANNEL_ID,
                    "BCI_1",
                    NotificationManager.IMPORTANCE_LOW
            );
            NotificationManager manager = getSystemService(NotificationManager.class);
            if (manager != null) {
                manager.createNotificationChannel(serviceChannel);
            }
        }
    }
private void createNotificationChannel ( ) { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . O ) { NotificationChannel serviceChannel = new NotificationChannel ( CHANNEL_ID , "BCI_1" , NotificationManager . IMPORTANCE_LOW ) ; NotificationManager manager = getSystemService ( NotificationManager . class ) ; if ( manager != null ) { manager . createNotificationChannel ( serviceChannel ) ; } } }
Create a Notification channel and set the importance
Create a Notification channel and set the importance