Notification notification = new Notification.Builder(this) .setContentTitle("This is title") .setContentText("This is content") .setSmallIcon(R.mipmap.ic_launcher) // .setLargeIcon(aBitmap) .build(); startForeground(1, notification);
notification.builder代替notification的setLatestEventInfo()方法
最新推荐文章于 2021-06-03 15:47:02 发布