I already set my notification icon but its showing mipmap ic_launcher icon.Plese help me to show the icon when notification comes.
private void addNotification() {
NotificationCompat.Builder builder = new NotificationCompat.Builder(getActivity())
.setSmallIcon(R.mipmap.logo)
.setLargeIcon(BitmapFactory.decodeResource(getActivity().getResources(),
R.mipmap.logo))
.setContentTitle("Delivery Boy")
.setWhen(System.currentTimeMillis())
.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))
.setContentText("You have Pending Orders");
Intent notificationIntent = new Intent(getContext(), MainActivity.class);
PendingIntent contentIntent = PendingIntent.getActivity(getContext(), 0, notificationIntent,
PendingIntent.FLAG_UPDATE_CURRENT);
builder.setContentIntent(contentIntent);
// Add as notification
NotificationManager manager = (NotificationManager)getActivity().getSystemService(Context.NOTIFICATION_SERVICE);
manager.notify(0, builder.build());
}