title: Android O notification not showing
body: <p>I'm trying to implement notifications for Android O version.
  I've read about notification manager and channels. So Android O still doesn't want to reproduce notifications. On main Activity in PostCreate method I wrote this.</p>
  
  <pre><code>    NotificationManager mNotifyManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
      String CHANNEL_ID = "my_channel_01";
      String CHANNEL_NAME = "my Channel Name";
      int NOTIFICATION_ID = 1;
  
      Intent notificationIntent = new Intent(this, MainActivity.class);
  
      PendingIntent notificationPendingIntent = PendingIntent.getActivity(this, NOTIFICATION_ID,
              notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);
  
  
      NotificationChannel notificationChannel = null;
      if (android.os.Build.VERSION.SDK_INT &gt;= android.os.Build.VERSION_CODES.O) {
  
          notificationChannel = new NotificationChannel(CHANNEL_ID,
                  CHANNEL_NAME, NotificationManager.IMPORTANCE_LOW);
          notificationChannel.enableLights(true);
          notificationChannel.setLightColor(Color.RED);
          notificationChannel.setShowBadge(true);
          notificationChannel.setLockscreenVisibility(Notification.VISIBILITY_PUBLIC);
  
          mNotifyManager.createNotificationChannel(notificationChannel);
      }
      Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
      Notification myNotification = new NotificationCompat.Builder(MainActivity.this)
              .setContentTitle("You have been notify")
              .setContentText("This is your Notifiaction Text")
              .setSmallIcon(R.drawable.ic_donut_large_black_24dp)
              .setChannel(CHANNEL_ID)
              .setPriority(NotificationCompat.PRIORITY_HIGH)
              .setDefaults(NotificationCompat.DEFAULT_ALL)
              .setContentIntent(notificationPendingIntent)
              .setAutoCancel(true)
              .setSound(alarmSound)
              .build();
  
      mNotifyManager.notify(NOTIFICATION_ID, myNotification);
      Toast.makeText(this, "accepted", Toast.LENGTH_SHORT).show();
  </code></pre>
  
  <p>After build for 26th API it doesn't create Notification, Toast message fires, and logs say me:</p>
  
  <blockquote>
    <p>W/Notification: Use of stream types is deprecated for operations other than volume control
    W/Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case</p>
  </blockquote>
  
  <p>How to handle this case of error?</p>
  
  <p>Upd. After some investigating, I've found that 26 api uses a little changes in notification builder. Now it accepts chanelid too. So for 26 use builder with two parameters.</p>