80,351
社区成员
发帖
与我相关
我的任务
分享
NotificationCompat.Builder builder = new NotificationCompat.Builder(AudioService.this, MainApplication.AUDIO_CHANNEL_ID)
.setAutoCancel(false)
.setOngoing(true)
.setVibrate(new long[]{0})
.setSound(null)
.setSmallIcon(R.drawable.ic_launcher);
remoteViews = new RemoteViews(getApplicationContext().getPackageName(), R.layout.notification);
builder.setContent(remoteViews);
builder.setPriority(Notification.PRIORITY_MIN);
noti = builder.build();
startForeground(0x0009, noti);