通知アイコンがredmi MIデバイスに表示されません。デフォルトのic_launcherと表示され、他のすべてのデバイスイメージに表示されます.API 22およびAndroid 5.1.1 およびminsdk = 15、target =他の多くの携帯電話では問題はありませんが、私のデバイスにはこの問題があります。この問題を解消してください。私のコードは通知アイコンの問題
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0);
NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
builder.setSmallIcon(R.drawable.home1); //icon appears in device notification bar and right hand corner of notification
builder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.home1));
builder.setContentIntent(pendingIntent);
builder.setContentTitle(Title);
builder.setContentText(message);
builder.setSubText(subtext);
NotificationManager notificationManager = (NotificationManager) getSystemService(context.NOTIFICATION_SERVICE);
notificationManager.notify(NOTIFICATION_ID, builder.build());
はあなたの通知に2つのアイコンを使用してください事前
hdpi、xhdpiなどのdrawable home1のバージョンが異なりますか? – sJy
ええ、私はまだ画像アイコンが来ていない... –
drawable home1のすべてのバージョンが似ているかどうか確認してください。 – sJy