私のアプリケーションの通知バーには、ティッカーの小さなアイコンのみが表示されます(必要に応じて)。ただし、「シェード」をプルダウンすると、ティッカーの小さなアイコンと、Notification.Builderで設定した大きなアイコンの両方が表示されます。これが私のコードです:
if (Build.VERSION.SDK_INT > 10){
notification = new Notification(R.drawable.ic_stat_mintchip,
"This is a test",
System.currentTimeMillis());
notification.largeIcon = (((BitmapDrawable)c.getResources().getDrawable(R.drawable.ic_launcher)).getBitmap());
notification.defaults |= Notification.DEFAULT_ALL;
notification.number += 1;
notification.flags |= Notification.FLAG_AUTO_CANCEL;
} else {
notification = new Notification(R.drawable.ic_stat_mintchip,
"This is a test",
System.currentTimeMillis());
notification.flags |= Notification.FLAG_AUTO_CANCEL;
notification.defaults |= Notification.DEFAULT_ALL;
notification.number += 1;
}
}
なぜこれが起こっているのかよくわかりません。何か助けはありますか?