0
// 3を使用して、それを表示する通知 通知通知を作成し、送信=新しいNotificationCompat.Builder(この) .setSmallIcon(R.mipmap.ic_launcher)通知に表示されないアイコン:白い四角ではなく示すとミップマップランチャー
.setContentTitle("Geofence Monitor")
.setContentText(text)
.setContentIntent(pendingNotificationIntent)
.setStyle(new NotificationCompat.BigTextStyle().bigText(bigText))
.setPriority(NotificationCompat.PRIORITY_HIGH)
.setAutoCancel(true)
.build();
notificationManager.notify(0, notification);
if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
new NotificationCompat.Builder(this).setSmallIcon(R.mipmap.ic_launcher);
} else {
new NotificationCompat.Builder(this) .setSmallIcon(R.mipmap.ic_launcher);
}
}
}
私の質問私は、デバイス上のアプリがあるアプリケーションを実行するとミップマップランチャーをサポートしていますが、loolipopにし、上記の白色を表示しないdevicesisと私は同じミップマップ・ランチャーを表示したいですロリポップ以上のデバイス。 ありがとうございました!