我想创建一个没有声音的通知。我怎样才能做到这一点?我尝试了以下代码,但不适用于我:
notification = mBuilder
.setStyle(notiStyle)
.setSmallIcon(notificationIcon)
.setTicker(title)
.setWhen(0)
.setAutoCancel(true)
.setContentTitle(title)
.setContentIntent(resultPendingIntent)
.setSound(null).build();
Run Code Online (Sandbox Code Playgroud)