図のように...
通知アイコン(赤色の左側)が表示されます。
しかし、黒い矢印通知ドロワーの通知アイコンとしてアプリアイコンを設定する方法
public void notify(View view){
notification.setSmallIcon(R.drawable.ic_stat_name);
notification.setTicker("Welcome to ****");
notification.setWhen(System.currentTimeMillis());
notification.setContentTitle("abcd");
notification.setContentText("abcd");
Intent intent = new Intent(this, home.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
notification.setContentIntent(pendingIntent);
NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
nm.notify(uniqueID, notification.build());
}
あなたは何をしようとしたのですか? –
あなたの通知ビルダーの使用.setSmallIcon(R.drawable.ic_launcher) – Sathish
で、私は私のコード –