android - Hide ticker text in notification using Notification.Builder -
i'm trying display ongoing notification without initial ticker text display. able working older style notification setting ticker text null in constructor: mnotification = new notification(r.drawable.ic_stat_playing, null, system.currenttimemillis()); however, noticed instantiating notification way deprecated, , use of notification.builder recommended instead. however, cannot notification display without ticker text, when set ticker text null: notification.builder builder = new notification.builder(this); charsequence contenttext = "contenttext here"; intent launchintent = new intent(this, mainactivity.class); // pendingintent launch our activity if user selects // notification pendingintent contentintent = pendingintent.getactivity(this, -1, launchintent, pendingintent.flag_update_current); builder.setcontentintent(contentintent) .setsmallicon(r.drawable.ic_stat_playing) .setlargeicon(null) .setticker(null) .setonlyalertonce(...