title: Heads-up Notification - Android Lollipop
body: <p>I'm trying to show a notification-type heads-up but I could not. What I tried</p>
  
  <pre><code>final Notification.Builder notif = new Builder(getApplicationContext())
      .setContentTitle(getString(R.string.title))
      .setContentText(getString(R.string.text))
  //  .setTicker(getString(R.string.tick)) removed, seems to not show at all
  //  .setWhen(System.currentTimeMillis()) removed, match default
  //  .setContentIntent(contentIntent) removed, I don't neet it
      .setColor(Color.parseColor(getString(R.color.yellow))) //ok
      .setSmallIcon(R.drawable.ic_small) //ok
      .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher))
  //  .setCategory(Notification.CATEGORY_CALL) does not seem to make a difference
      .setPriority(Notification.PRIORITY_MAX); //does not seem to make a difference
  //  .setVisibility(Notification.VISIBILITY_PRIVATE); //does not seem to make a difference
  
  mNotificationManager.notify(Constants.NOTIFICATION_ID, notif.build());
  </code></pre>
  
  <p>The notification is shown only as an icon in the bar.
  I'm using API 21 on API 21 emulator (not L preview)
  I have tried:<br>
  <code>android:Theme.Holo.NoActionBar</code>,<br>
  <code>android:Theme.Holo.NoActionBar.Fullscreen</code><br>
  and <code>NotificationCompat.Builder</code>  </p>
  
  <p>SDK examples are not available. does anyone know how to do it?</p>
  
  <p><strong>I made it working by adding:</strong></p>
  
  <pre><code>.setDefaults(Notification.DEFAULT_VIBRATE)
  </code></pre>
  
  <p>is this the best way?</p>